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 OrderBy Serializable
Date Fri, 08 Dec 2017 03:15:40 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X 172820ec8 -> cdbebcf8d


Make OrderBy Serializable

(cherry picked from commit bc69ec9)


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

Branch: refs/heads/GROOVY_2_6_X
Commit: cdbebcf8de12d748b8f99721a451032c66454c4d
Parents: 172820e
Author: sunlan <sunlan@apache.org>
Authored: Fri Dec 8 10:54:03 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Fri Dec 8 11:15:35 2017 +0800

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/cdbebcf8/src/main/groovy/util/OrderBy.java
----------------------------------------------------------------------
diff --git a/src/main/groovy/util/OrderBy.java b/src/main/groovy/util/OrderBy.java
index cd649b4..703c9bc 100644
--- a/src/main/groovy/util/OrderBy.java
+++ b/src/main/groovy/util/OrderBy.java
@@ -22,6 +22,7 @@ import groovy.lang.Closure;
 import org.codehaus.groovy.runtime.NumberAwareComparator;
 import org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation;
 
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Comparator;
 import java.util.List;
@@ -32,8 +33,9 @@ import java.util.List;
  *
  * @author <a href="mailto:james@coredevelopers.net">James Strachan</a>
  */
-public class OrderBy<T> implements Comparator<T> {
+public class OrderBy<T> implements Comparator<T>, Serializable {
 
+    private static final long serialVersionUID = 8385130064804116654L;
     private final List<Closure> closures;
     private boolean equalityCheck;
     private final NumberAwareComparator<Object> numberAwareComparator = new NumberAwareComparator<Object>();


Mime
View raw message