jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1336534 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
Date Thu, 10 May 2012 08:33:40 GMT
Author: mduerig
Date: Thu May 10 08:33:39 2012
New Revision: 1336534

URL: http://svn.apache.org/viewvc?rev=1336534&view=rev
Log:
renaming local var

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=1336534&r1=1336533&r2=1336534&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 May 10 08:33:39 2012
@@ -134,14 +134,14 @@ public class RootImpl implements Root {
      *          at {@code path} or {@code null} if no such item exits.
      */
     private TreeImpl getChild(String path) {
-        TreeImpl state = root;
+        TreeImpl child = root;
         for (String name : elements(path)) {
-            state = state.getChild(name);
-            if (state == null) {
+            child = child.getChild(name);
+            if (child == null) {
                 return null;
             }
         }
-        return state;
+        return child;
     }
 
     private void rebase(boolean mergeChanges) {



Mime
View raw message