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 ch...@apache.org on 2016/06/21 06:20:47 UTC

svn commit: r1749440 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/secondary/DelegatingDocumentNodeState.java

Author: chetanm
Date: Tue Jun 21 06:20:47 2016
New Revision: 1749440

URL: http://svn.apache.org/viewvc?rev=1749440&view=rev
Log:
OAK-4180 - Use another NodeStore as a local cache for a remote Document store

Remove extra constructor and make others private

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/secondary/DelegatingDocumentNodeState.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/secondary/DelegatingDocumentNodeState.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/secondary/DelegatingDocumentNodeState.java?rev=1749440&r1=1749439&r2=1749440&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/secondary/DelegatingDocumentNodeState.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/secondary/DelegatingDocumentNodeState.java Tue Jun 21 06:20:47 2016
@@ -75,7 +75,7 @@ class DelegatingDocumentNodeState extend
     public static NodeState wrapIfPossible(NodeState delegate, NodeStateDiffer differ) {
         if (hasMetaProps(delegate)) {
             String revVector = getRequiredProp(delegate, PROP_REVISION);
-            return new DelegatingDocumentNodeState(delegate, RevisionVector.fromString(revVector), differ);
+            return new DelegatingDocumentNodeState(delegate, RevisionVector.fromString(revVector), false, differ);
         }
         return delegate;
     }
@@ -86,14 +86,10 @@ class DelegatingDocumentNodeState extend
 
     public static AbstractDocumentNodeState wrap(NodeState delegate, NodeStateDiffer differ) {
         String revVector = getRequiredProp(delegate, PROP_REVISION);
-        return new DelegatingDocumentNodeState(delegate, RevisionVector.fromString(revVector), differ);
+        return new DelegatingDocumentNodeState(delegate, RevisionVector.fromString(revVector), false, differ);
     }
 
-    public DelegatingDocumentNodeState(NodeState delegate, RevisionVector rootRevision, NodeStateDiffer differ) {
-        this(delegate, rootRevision, false, differ);
-    }
-
-    public DelegatingDocumentNodeState(NodeState delegate, RevisionVector rootRevision,
+    private DelegatingDocumentNodeState(NodeState delegate, RevisionVector rootRevision,
                                        boolean fromExternalChange, NodeStateDiffer differ) {
         super(differ);
         this.delegate = delegate;