groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Trivial refactoring
Date Sat, 02 Dec 2017 09:37:09 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 4aa686d95 -> fc5a56fb5


Trivial refactoring


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

Branch: refs/heads/master
Commit: fc5a56fb5254faca8f82099ab912723d2f148799
Parents: 4aa686d
Author: sunlan <sunlan@apache.org>
Authored: Sat Dec 2 17:36:29 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Sat Dec 2 17:36:29 2017 +0800

----------------------------------------------------------------------
 src/main/groovy/util/ClosureComparator.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/fc5a56fb/src/main/groovy/util/ClosureComparator.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/util/ClosureComparator.java b/src/main/groovy/util/ClosureComparator.java
index 269773c..b068e0b 100644
--- a/src/main/groovy/util/ClosureComparator.java
+++ b/src/main/groovy/util/ClosureComparator.java
@@ -38,7 +38,7 @@ public class ClosureComparator<T> implements Comparator<T>,
Serializable {
     }
 
     public int compare(T object1, T object2) {
-        Object value = closure.call(new Object[] {object1, object2});
+        Object value = closure.call(object1, object2);
         return DefaultTypeTransformation.intUnbox(value);
     }
 }


Mime
View raw message