directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r589213 - in /directory: apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/ shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/schema/
Date Sat, 27 Oct 2007 20:35:23 GMT
Author: akarasulu
Date: Sat Oct 27 13:35:23 2007
New Revision: 589213

URL: http://svn.apache.org/viewvc?rev=589213&view=rev
Log:
fixing breakage that resulted from too much generics

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/LeafEvaluator.java
    directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ByteArrayComparator.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/LeafEvaluator.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/LeafEvaluator.java?rev=589213&r1=589212&r2=589213&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/LeafEvaluator.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/partition/impl/btree/LeafEvaluator.java
Sat Oct 27 13:35:23 2007
@@ -234,7 +234,7 @@
      * 
      * @param node the greater than or less than node to evaluate
      * @param record the IndexRecord of the perspective candidate
-     * @param isGreater true if it is a greater than or equal to comparison,
+     * @param isGreaterOrLesser true if it is a greater than or equal to comparison,
      *      false if it is a less than or equal to comparison.
      * @return the ava evaluation on the perspective candidate
      * @throws NamingException if there is a database access failure

Modified: directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ByteArrayComparator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ByteArrayComparator.java?rev=589213&r1=589212&r2=589213&view=diff
==============================================================================
--- directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ByteArrayComparator.java
(original)
+++ directory/shared/branches/bigbang/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ByteArrayComparator.java
Sat Oct 27 13:35:23 2007
@@ -29,15 +29,18 @@
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$
  */
-public class ByteArrayComparator implements Comparator<byte[]>
+public class ByteArrayComparator implements Comparator
 {
     public static final ByteArrayComparator INSTANCE = new ByteArrayComparator();
 
     /* (non-Javadoc)
      * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
      */
-    public int compare( byte[] b1, byte[] b2)
+    public int compare( Object o1, Object o2 )
     {
+        byte[] b1 = ( byte[] ) o1;
+        byte[] b2 = ( byte[] ) o2;
+
         // -------------------------------------------------------------------
         // Handle some basis cases
         // -------------------------------------------------------------------



Mime
View raw message