jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1360601 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
Date Thu, 12 Jul 2012 09:39:14 GMT
Author: mduerig
Date: Thu Jul 12 09:39:13 2012
New Revision: 1360601

URL: http://svn.apache.org/viewvc?rev=1360601&view=rev
Log:
minor: inline and remove redundant private helper method

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java?rev=1360601&r1=1360600&r2=1360601&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
Thu Jul 12 09:39:13 2012
@@ -62,7 +62,7 @@ public class RootImpl implements Root {
     /** Current branch this root operates on */
     private NodeStoreBranch branch;
 
-    /** Actual root element of the {@code Tree} */
+    /** Current root {@code Tree} */
     private TreeImpl root;
 
     /**
@@ -267,10 +267,6 @@ public class RootImpl implements Root {
         }
     }
 
-    private TreeImpl getRoot() {
-        return root;
-    }
-
     /**
      * Get a tree for the child identified by {@code path}
      * @param path  the path to the child
@@ -278,7 +274,7 @@ public class RootImpl implements Root {
      *          at {@code path} or {@code null} if no such item exits.
      */
     private TreeImpl getChild(String path) {
-        TreeImpl child = getRoot();
+        TreeImpl child = root;
         for (String name : elements(path)) {
             child = child.getChild(name);
             if (child == null) {



Mime
View raw message