jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1450854 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ReadOnlyRoot.java
Date Wed, 27 Feb 2013 17:11:41 GMT
Author: angela
Date: Wed Feb 27 17:11:41 2013
New Revision: 1450854

URL: http://svn.apache.org/r1450854
Log:
ReadOnlyTree(Tree) can be private

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ReadOnlyRoot.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ReadOnlyRoot.java?rev=1450854&r1=1450853&r2=1450854&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ReadOnlyRoot.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/ReadOnlyRoot.java
Wed Feb 27 17:11:41 2013
@@ -44,13 +44,13 @@ public final class ReadOnlyRoot implemen
         this(new ReadOnlyTree(rootState));
     }
 
-    public ReadOnlyRoot(@Nonnull ReadOnlyTree rootTree) {
-        checkArgument(rootTree.isRoot());
-        this.rootTree = rootTree;
+    public ReadOnlyRoot(@Nonnull Root root) {
+        this(ReadOnlyTree.createFromRoot(root));
     }
 
-    public ReadOnlyRoot(@Nonnull Root root) {
-        this.rootTree = ReadOnlyTree.createFromRoot(root);
+    private ReadOnlyRoot(@Nonnull ReadOnlyTree rootTree) {
+        checkArgument(rootTree.isRoot());
+        this.rootTree = rootTree;
     }
 
     @Override



Mime
View raw message