directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1587168 - /directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
Date Mon, 14 Apr 2014 10:03:13 GMT
Author: elecharny
Date: Mon Apr 14 10:03:12 2014
New Revision: 1587168

URL: http://svn.apache.org/r1587168
Log:
Use a static instance of a String serializer

Modified:
    directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java

Modified: directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java?rev=1587168&r1=1587167&r2=1587168&view=diff
==============================================================================
--- directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
(original)
+++ directory/apacheds/trunk/core-shared/src/main/java/org/apache/directory/server/core/shared/DefaultCoreSession.java
Mon Apr 14 10:03:12 2014
@@ -1333,7 +1333,7 @@ public class DefaultCoreSession implemen
         PersistedBTreeConfiguration<Entry, String> config = new PersistedBTreeConfiguration<Entry,
String>();
         config.setName( UUID.randomUUID().toString() );
         config.setKeySerializer( keySerializer );
-        config.setValueSerializer( new StringSerializer() );
+        config.setValueSerializer( StringSerializer.INSTANCE );
 
         BTree<Entry, String> btree = BTreeFactory.createPersistedBTree( config );
 



Mime
View raw message