Quantcast

camel git commit: ComponentVerifier: preserve order of group options

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

camel git commit: ComponentVerifier: preserve order of group options

lburgazzoli-2
Repository: camel
Updated Branches:
  refs/heads/master 9b341c7e9 -> dc7a6d174


ComponentVerifier: preserve order of group options


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/dc7a6d17
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/dc7a6d17
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/dc7a6d17

Branch: refs/heads/master
Commit: dc7a6d1742040358b3097bbd24318962841f7e05
Parents: 9b341c7
Author: lburgazzoli <[hidden email]>
Authored: Mon Mar 20 18:15:35 2017 +0100
Committer: lburgazzoli <[hidden email]>
Committed: Mon Mar 20 18:15:35 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/camel/impl/verifier/OptionsGroup.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/dc7a6d17/camel-core/src/main/java/org/apache/camel/impl/verifier/OptionsGroup.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/impl/verifier/OptionsGroup.java b/camel-core/src/main/java/org/apache/camel/impl/verifier/OptionsGroup.java
index dcfd668..6f9d633 100644
--- a/camel-core/src/main/java/org/apache/camel/impl/verifier/OptionsGroup.java
+++ b/camel-core/src/main/java/org/apache/camel/impl/verifier/OptionsGroup.java
@@ -20,6 +20,7 @@ import java.io.Serializable;
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.HashSet;
+import java.util.LinkedHashSet;
 import java.util.Set;
 
 public final class OptionsGroup implements Serializable {
@@ -33,7 +34,7 @@ public final class OptionsGroup implements Serializable {
 
     public OptionsGroup(String name, Collection<String> options) {
         this.name = name;
-        this.options = new HashSet<>(options);
+        this.options = new LinkedHashSet<>(options);
     }
 
     public void addOption(String option) {

Loading...