jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1376921 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
Date Fri, 24 Aug 2012 14:07:31 GMT
Author: mduerig
Date: Fri Aug 24 14:07:30 2012
New Revision: 1376921

URL: http://svn.apache.org/viewvc?rev=1376921&view=rev
Log:
OAK-275 Introduce TreeLocation interface
cleanup

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=1376921&r1=1376920&r2=1376921&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
Fri Aug 24 14:07:30 2012
@@ -545,10 +545,10 @@ public class TreeImpl implements Tree, P
 
     //------------------------------------------------------------< TreeLocation >---
 
-    private class NodeLocation implements TreeLocation {
+    public class NodeLocation implements TreeLocation {
         private final TreeImpl tree;
 
-        public NodeLocation(TreeImpl tree) {
+        private NodeLocation(TreeImpl tree) {
             assert tree != null;
             this.tree = tree;
         }
@@ -614,7 +614,7 @@ public class TreeImpl implements Tree, P
         private final NodeLocation parent;
         private final PropertyState property;
 
-        public PropertyLocation(NodeLocation parent, PropertyState property) {
+        private PropertyLocation(NodeLocation parent, PropertyState property) {
             assert parent != null;
             assert property != null;
             this.parent = parent;
@@ -707,9 +707,12 @@ public class TreeImpl implements Tree, P
         }
     }
 
-    private static class NullLocation implements TreeLocation {
+    public static class NullLocation implements TreeLocation {
         public static final NullLocation INSTANCE = new NullLocation();
 
+        private NullLocation() {
+        }
+
         @Override
         public TreeLocation getParent() {
             return this;



Mime
View raw message