directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r952239 - /directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java
Date Mon, 07 Jun 2010 14:19:52 GMT
Author: felixk
Date: Mon Jun  7 14:19:51 2010
New Revision: 952239

URL: http://svn.apache.org/viewvc?rev=952239&view=rev
Log:
instanceof will always return true since all jdbm.helper.Serializer are instances of java.io.Serializable

Modified:
    directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java

Modified: directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java?rev=952239&r1=952238&r2=952239&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java (original)
+++ directory/apacheds/trunk/jdbm/src/main/java/jdbm/btree/BTree.java Mon Jun  7 14:19:51
2010
@@ -206,7 +206,7 @@ public class BTree<K, V> implements Exte
             throw new IllegalArgumentException( I18n.err( I18n.ERR_519 ) );
         }
 
-        if ( keySerializer != null && !( keySerializer instanceof Serializable )
)
+        if ( keySerializer != null )
         {
             throw new IllegalArgumentException( I18n.err( I18n.ERR_520 ) );
         }



Mime
View raw message