directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r539341 - /directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
Date Fri, 18 May 2007 09:28:26 GMT
Author: elecharny
Date: Fri May 18 02:28:25 2007
New Revision: 539341

URL: http://svn.apache.org/viewvc?view=rev&rev=539341
Log:
No need to normalized a Long ...

Modified:
    directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java

Modified: directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java?view=diff&rev=539341&r1=539340&r2=539341
==============================================================================
--- directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
(original)
+++ directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmIndex.java
Fri May 18 02:28:25 2007
@@ -30,7 +30,6 @@
 import javax.naming.directory.Attributes;
 
 import jdbm.RecordManager;
-import jdbm.helper.LongSerializer;
 import jdbm.helper.MRU;
 import jdbm.recman.BaseRecordManager;
 import jdbm.recman.CacheRecordManager;
@@ -482,6 +481,11 @@
      */
     public Object getNormalized( Object attrVal ) throws NamingException
     {
+        if ( attrVal instanceof Long )
+        {
+            return attrVal;
+        }
+        
         Object normalized = keyCache.get( attrVal );
 
         if ( null == normalized )



Mime
View raw message