]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix for #3820 - DefaultItemSorter is not serializable
authorArtur Signell <artur.signell@itmill.com>
Thu, 10 Dec 2009 11:25:48 +0000 (11:25 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 10 Dec 2009 11:25:48 +0000 (11:25 +0000)
svn changeset:10225/svn branch:6.2

src/com/vaadin/data/util/DefaultItemSorter.java
src/com/vaadin/data/util/ItemSorter.java

index 4a99714212b42a95a5e98c60ef1f6267b5abab2c..5cec2dc461971876d62f2efa083eef346834a864 100644 (file)
@@ -1,5 +1,6 @@
 package com.vaadin.data.util;
 
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Comparator;
@@ -157,7 +158,7 @@ public class DefaultItemSorter implements ItemSorter {
      * 
      */
     public static class DefaultPropertyValueComparator implements
-            Comparator<Object> {
+            Comparator<Object>, Serializable {
 
         public int compare(Object o1, Object o2) {
             int r = 0;
index eb665b48cdc81f75269ff33666dd8a7448b1e36e..533a530a825615c821a436404049378184e78a81 100644 (file)
@@ -1,5 +1,6 @@
 package com.vaadin.data.util;
 
+import java.io.Serializable;
 import java.util.Comparator;
 
 import com.vaadin.data.Container;
@@ -10,7 +11,7 @@ import com.vaadin.data.Container.Sortable;
  * The <code>ItemSorter</code> interface can be used in <code>Sortable</code>
  * implementations to provide a custom sorting method. The interface
  */
-public interface ItemSorter extends Comparator<Object>, Cloneable {
+public interface ItemSorter extends Comparator<Object>, Cloneable, Serializable {
 
     /**
      * Sets the parameters for an upcoming sort operation. The parameters