jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1372989 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
Date Tue, 14 Aug 2012 17:25:04 GMT
Author: mduerig
Date: Tue Aug 14 17:25:04 2012
New Revision: 1372989

URL: http://svn.apache.org/viewvc?rev=1372989&view=rev
Log:
simplify

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java?rev=1372989&r1=1372988&r2=1372989&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
Tue Aug 14 17:25:04 2012
@@ -198,11 +198,7 @@ public class TreeImpl implements Tree, P
                 new Predicate<PropertyState>() {
                     @Override
                     public boolean apply(PropertyState propertyState) {
-                        if (propertyState != null) {
-                            return canReadProperty(propertyState.getName());
-                        } else {
-                            return false;
-                        }
+                        return propertyState != null && canReadProperty(propertyState.getName());
                     }
                 });
     }
@@ -268,11 +264,7 @@ public class TreeImpl implements Tree, P
                 new Predicate<Tree>() {
                     @Override
                     public boolean apply(Tree tree) {
-                        if (tree != null) {
-                            return canRead(tree);
-                        } else {
-                            return false;
-                        }
+                        return tree != null && canRead(tree);
                     }
                 });
     }



Mime
View raw message