directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r944620 - in /directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm: ForwardIndexEntry.java ReverseIndexEntry.java
Date Sat, 15 May 2010 12:02:41 GMT
Author: seelmann
Date: Sat May 15 12:02:41 2010
New Revision: 944620

URL: http://svn.apache.org/viewvc?rev=944620&view=rev
Log:
Removed unnecessary null check

Modified:
    directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/ForwardIndexEntry.java
    directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/ReverseIndexEntry.java

Modified: directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/ForwardIndexEntry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/ForwardIndexEntry.java?rev=944620&r1=944619&r2=944620&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/ForwardIndexEntry.java
(original)
+++ directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/ForwardIndexEntry.java
Sat May 15 12:02:41 2010
@@ -78,11 +78,6 @@ public class ForwardIndexEntry<V, O, ID>
 
     public O getObject()
     {
-        if ( obj == null )
-        {
-            return null;
-        }
-
         return obj;
     }
 

Modified: directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/ReverseIndexEntry.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/ReverseIndexEntry.java?rev=944620&r1=944619&r2=944620&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/ReverseIndexEntry.java
(original)
+++ directory/apacheds/trunk/xdbm-base/src/main/java/org/apache/directory/server/xdbm/ReverseIndexEntry.java
Sat May 15 12:02:41 2010
@@ -78,11 +78,6 @@ public class ReverseIndexEntry<V, O, ID>
 
     public O getObject()
     {
-        if ( obj == null )
-        {
-            return null;
-        }
-
         return obj;
     }
 



Mime
View raw message