directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1778705 - /directory/apacheds/branches/apacheds-value/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
Date Sat, 14 Jan 2017 01:55:06 GMT
Author: elecharny
Date: Sat Jan 14 01:55:05 2017
New Revision: 1778705

URL: http://svn.apache.org/viewvc?rev=1778705&view=rev
Log:
Used Strings.EMPTY_BYTES instead of StringConstants.EMPTY_BYTES

Modified:
    directory/apacheds/branches/apacheds-value/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java

Modified: directory/apacheds/branches/apacheds-value/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-value/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java?rev=1778705&r1=1778704&r2=1778705&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-value/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
(original)
+++ directory/apacheds/branches/apacheds-value/jdbm-partition/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmTable.java
Sat Jan 14 01:55:05 2017
@@ -39,7 +39,7 @@ import org.apache.directory.api.ldap.mod
 import org.apache.directory.api.ldap.model.exception.LdapOtherException;
 import org.apache.directory.api.ldap.model.schema.SchemaManager;
 import org.apache.directory.api.ldap.model.schema.comparators.SerializableComparator;
-import org.apache.directory.api.util.StringConstants;
+import org.apache.directory.api.util.Strings;
 import org.apache.directory.api.util.SynchronizedLRUMap;
 import org.apache.directory.server.core.avltree.ArrayMarshaller;
 import org.apache.directory.server.core.avltree.ArrayTree;
@@ -650,7 +650,7 @@ public class JdbmTable<K, V> extends Abs
             }
 
             BTree tree = getBTree( values.getBTreeRedirect() );
-            replaced = ( V ) tree.insert( value, StringConstants.EMPTY_BYTES, true );
+            replaced = ( V ) tree.insert( value, Strings.EMPTY_BYTES, true );
 
             if ( replaced == null )
             {
@@ -1161,7 +1161,7 @@ public class JdbmTable<K, V> extends Abs
 
         while ( keys.next() )
         {
-            bTree.insert( keys.get(), ( K ) StringConstants.EMPTY_BYTES, true );
+            bTree.insert( keys.get(), ( K ) Strings.EMPTY_BYTES, true );
         }
 
         keys.close();



Mime
View raw message