camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject [2/4] camel git commit: Fixed CS
Date Sat, 27 May 2017 13:36:26 GMT
Fixed CS


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

Branch: refs/heads/master
Commit: 684d401ac6e9e2058f9c3a8b4f230dae7a2d72ed
Parents: cd1532c
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Sat May 27 15:15:12 2017 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Sat May 27 15:15:12 2017 +0200

----------------------------------------------------------------------
 .../apache/camel/util/OrderedComparator.java    | 22 +++++++++++++-------
 1 file changed, 14 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/684d401a/camel-core/src/main/java/org/apache/camel/util/OrderedComparator.java
----------------------------------------------------------------------
diff --git a/camel-core/src/main/java/org/apache/camel/util/OrderedComparator.java b/camel-core/src/main/java/org/apache/camel/util/OrderedComparator.java
index 5462a99..6864a4e 100644
--- a/camel-core/src/main/java/org/apache/camel/util/OrderedComparator.java
+++ b/camel-core/src/main/java/org/apache/camel/util/OrderedComparator.java
@@ -30,14 +30,6 @@ public final class OrderedComparator implements Comparator<Object>
{
     private static final OrderedComparator INSTANCE = new OrderedComparator();
     private static final OrderedComparator INSTANCE_REVERSE = new OrderedComparator(true);
 
-    public static OrderedComparator get() {
-        return INSTANCE;
-    }
-
-    public static OrderedComparator getReverse() {
-        return INSTANCE_REVERSE;
-    }
-
     private final boolean reverse;
 
     /**
@@ -54,6 +46,20 @@ public final class OrderedComparator implements Comparator<Object>
{
         this.reverse = reverse;
     }
 
+    /**
+     * Gets the comparator that sorts a..z
+     */
+    public static OrderedComparator get() {
+        return INSTANCE;
+    }
+
+    /**
+     * Gets the comparator that sorts z..a (reverse)
+     */
+    public static OrderedComparator getReverse() {
+        return INSTANCE_REVERSE;
+    }
+
     public int compare(Object o1, Object o2) {
         Integer num1 = 0;
         Integer num2 = 0;


Mime
View raw message