You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by md...@apache.org on 2012/08/24 16:07:31 UTC
svn commit: r1376921 -
/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/core/TreeImpl.java
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;