commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From morg...@apache.org
Subject cvs commit: jakarta-commons/collections/src/java/org/apache/commons/collections/comparators ComparableComparator.java ReverseComparator.java
Date Fri, 01 Mar 2002 19:18:49 GMT
morgand     02/03/01 11:18:49

  Modified:    collections/src/java/org/apache/commons/collections/comparators
                        ComparableComparator.java ReverseComparator.java
  Log:
  make all Comparators Serializable
  
  Revision  Changes    Path
  1.3       +4 -3      jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/ComparableComparator.java
  
  Index: ComparableComparator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/ComparableComparator.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ComparableComparator.java	28 Feb 2002 18:06:39 -0000	1.2
  +++ ComparableComparator.java	1 Mar 2002 19:18:49 -0000	1.3
  @@ -54,8 +54,9 @@
    * <http://www.apache.org/>.
    */
   
  -import java.util.Comparator;
  +import java.io.Serializable;
   import java.lang.Comparable;
  +import java.util.Comparator;
   
   /**
    * A Comparator that compares Comparable objects.
  @@ -68,9 +69,9 @@
    * of SortedSet and SortedMap.
    *
    * @author bayard@generationjava.com
  - * @version $Id: ComparableComparator.java,v 1.2 2002/02/28 18:06:39 morgand Exp $
  + * @version $Id: ComparableComparator.java,v 1.3 2002/03/01 19:18:49 morgand Exp $
    */
  -public class ComparableComparator implements Comparator {
  +public class ComparableComparator implements Comparator,Serializable {
   
       public ComparableComparator() {
       }
  
  
  
  1.5       +3 -2      jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/ReverseComparator.java
  
  Index: ReverseComparator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/collections/src/java/org/apache/commons/collections/comparators/ReverseComparator.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ReverseComparator.java	1 Mar 2002 19:00:33 -0000	1.4
  +++ ReverseComparator.java	1 Mar 2002 19:18:49 -0000	1.5
  @@ -54,15 +54,16 @@
    * <http://www.apache.org/>.
    */
   
  +import java.io.Serializable;
   import java.util.Comparator;
   
   /**
    * Reverses the order of another comparator.
    *
    * @author bayard@generationjava.com
  - * @version $Id: ReverseComparator.java,v 1.4 2002/03/01 19:00:33 morgand Exp $
  + * @version $Id: ReverseComparator.java,v 1.5 2002/03/01 19:18:49 morgand Exp $
    */
  -public class ReverseComparator implements Comparator {
  +public class ReverseComparator implements Comparator,Serializable {
   
       private Comparator comparator;
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message