jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1325766 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/AbstractNodeState.java
Date Fri, 13 Apr 2012 13:45:54 GMT
Author: angela
Date: Fri Apr 13 13:45:54 2012
New Revision: 1325766

URL: http://svn.apache.org/viewvc?rev=1325766&view=rev
Log:
OAK-18 - Define Oak API (minor simplification, fix @code)

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/AbstractNodeState.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/AbstractNodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/AbstractNodeState.java?rev=1325766&r1=1325765&r2=1325766&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/AbstractNodeState.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/kernel/AbstractNodeState.java
Fri Apr 13 13:45:54 2012
@@ -82,8 +82,8 @@ public abstract class AbstractNodeState 
      * more efficient equality check if one is available.
      *
      * @param that target of the comparison
-     * @return <code>true</code> if the objects are equal,
-     *         <code>false</code> otherwise
+     * @return {@code true} if the objects are equal,
+     *         {@code false} otherwise
      */
     @Override
     public boolean equals(Object that) {
@@ -113,11 +113,8 @@ public abstract class AbstractNodeState 
             }
             childNodeCount++;
         }
-        if (childNodeCount != other.getChildNodeCount()) {
-            return false;
-        }
+        return childNodeCount == other.getChildNodeCount();
 
-        return true;
     }
 
     /**



Mime
View raw message