directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 55354 - incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema
Date Sat, 23 Oct 2004 06:06:24 GMT
Author: akarasulu
Date: Fri Oct 22 23:06:24 2004
New Revision: 55354

Modified:
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ComparableComparator.java
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnComparator.java
   incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/NormalizingComparator.java
Log:
made a bunch of comparators serializable: hope I am not breaking anything

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ComparableComparator.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ComparableComparator.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/ComparableComparator.java
Fri Oct 22 23:06:24 2004
@@ -18,6 +18,7 @@
 
 
 import java.util.Comparator;
+import java.io.Serializable;
 
 
 /**
@@ -26,7 +27,7 @@
  * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class ComparableComparator implements Comparator
+public class ComparableComparator implements Comparator, Serializable
 {
     /**
      * Compares two objects taking into account that one may be a Comparable.

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnComparator.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnComparator.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/DnComparator.java
Fri Oct 22 23:06:24 2004
@@ -18,6 +18,7 @@
 
 
 import java.io.IOException ;
+import java.io.Serializable;
 import java.util.Comparator ;
 
 import javax.naming.Name ;
@@ -37,10 +38,10 @@
  * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class DnComparator implements Comparator
+public class DnComparator implements Comparator, Serializable
 {
     /** The parser used to parse DN Strings */
-    private NameParser parser ;
+    private transient NameParser parser ;
     
     
     // ------------------------------------------------------------------------

Modified: incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/NormalizingComparator.java
==============================================================================
--- incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/NormalizingComparator.java
(original)
+++ incubator/directory/ldap/trunk/common/src/java/org/apache/ldap/common/schema/NormalizingComparator.java
Fri Oct 22 23:06:24 2004
@@ -18,6 +18,7 @@
 
 
 import java.util.Comparator;
+import java.io.Serializable;
 import javax.naming.NamingException;
 
 
@@ -28,12 +29,12 @@
  * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class NormalizingComparator implements Comparator
+public class NormalizingComparator implements Comparator, Serializable
 {
     /** the Normalizer to normalize values with before comparing */
-    private final Normalizer normalizer;
+    private transient Normalizer normalizer;
     /** the underlying comparator to use for comparisons */
-    private final Comparator comparator;
+    private transient Comparator comparator;
 
 
     /**

Mime
View raw message