directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r881388 - /directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/SerializableComparator.java
Date Tue, 17 Nov 2009 17:22:35 GMT
Author: elecharny
Date: Tue Nov 17 17:22:34 2009
New Revision: 881388

URL: http://svn.apache.org/viewvc?rev=881388&view=rev
Log:
Create a CompareComparable comparator when no other one is found

Modified:
    directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/SerializableComparator.java

Modified: directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/SerializableComparator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/SerializableComparator.java?rev=881388&r1=881387&r2=881388&view=diff
==============================================================================
--- directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/SerializableComparator.java
(original)
+++ directory/shared/branches/shared-schema/ldap/src/main/java/org/apache/directory/shared/ldap/schema/comparators/SerializableComparator.java
Tue Nov 17 17:22:34 2009
@@ -94,7 +94,8 @@
             }
             catch ( NamingException ne )
             {
-                
+                // Not found : get the default comparator
+                wrapped = (Comparator<E>)new ComparableComparator<Comparable<E>>(
matchingRuleOid );
             }
         }
 



Mime
View raw message