groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Make ClosureComparator serializable
Date Mon, 04 Dec 2017 10:50:19 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 2e85b4b0f -> 1e94c6e4f


Make ClosureComparator serializable


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

Branch: refs/heads/GROOVY_2_4_X
Commit: 1e94c6e4fcece9a33d50d99f6c7100e725be9f8b
Parents: 2e85b4b
Author: sunlan <sunlan@apache.org>
Authored: Mon Dec 4 18:50:14 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Mon Dec 4 18:50:14 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/1e94c6e4/src/main/groovy/util/ClosureComparator.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/util/ClosureComparator.java b/src/main/groovy/util/ClosureComparator.java
index b8105f9..dc70ea6 100644
--- a/src/main/groovy/util/ClosureComparator.java
+++ b/src/main/groovy/util/ClosureComparator.java
@@ -21,6 +21,7 @@ package groovy.util;
 import groovy.lang.Closure;
 import org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation;
 
+import java.io.Serializable;
 import java.util.Comparator;
 
 /**
@@ -28,7 +29,7 @@ import java.util.Comparator;
  * 
  * @author <a href="mailto:james@coredevelopers.net">James Strachan</a>
  */
-public class ClosureComparator<T> implements Comparator<T> {
+public class ClosureComparator<T> implements Comparator<T>, Serializable {
 
     private static final long serialVersionUID = -4593521535656429522L;
     Closure closure;


Mime
View raw message