jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1368932 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/RootImpl.java
Date Fri, 03 Aug 2012 13:12:39 GMT
Author: angela
Date: Fri Aug  3 13:12:39 2012
New Revision: 1368932

URL: http://svn.apache.org/viewvc?rev=1368932&view=rev
Log:
minor impovement: duplicate code

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=1368932&r1=1368931&r2=1368932&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
Fri Aug  3 13:12:39 2012
@@ -99,10 +99,7 @@ public class RootImpl implements Root {
         this.store = store;
         this.accessControlContext = accessControlContext;
 
-        branch = store.branch();
-        rootTree = TreeImpl.createRoot(this);
-        // TODO: define how permissions are bound to the current branch
-        permissions = accessControlContext.getPermissions();
+        refresh();
     }
 
     //---------------------------------------------------------------< Root >---



Mime
View raw message