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 re...@apache.org on 2016/04/12 13:41:43 UTC

svn commit: r1738775 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentMK.java

Author: reschke
Date: Tue Apr 12 11:41:43 2016
New Revision: 1738775

URL: http://svn.apache.org/viewvc?rev=1738775&view=rev
Log:
remove trailing whitespace

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentMK.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentMK.java?rev=1738775&r1=1738774&r2=1738775&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentMK.java (original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentMK.java Tue Apr 12 11:41:43 2016
@@ -90,13 +90,13 @@ import org.slf4j.LoggerFactory;
  * data in a {@link DocumentStore}. It is used for testing purpose only.
  */
 public class DocumentMK {
-    
+
     static final Logger LOG = LoggerFactory.getLogger(DocumentMK.class);
-    
+
     /**
      * The path where the persistent cache is stored.
      */
-    static final String DEFAULT_PERSISTENT_CACHE_URI = 
+    static final String DEFAULT_PERSISTENT_CACHE_URI =
             System.getProperty("oak.documentMK.persCache");
 
     /**
@@ -109,7 +109,7 @@ public class DocumentMK {
      * Enable or disable the LIRS cache (null to use the default setting for this configuration).
      */
     static final Boolean LIRS_CACHE;
-    
+
     static {
         String s = System.getProperty("oak.documentMK.lirsCache");
         LIRS_CACHE = s == null ? null : Boolean.parseBoolean(s);
@@ -680,12 +680,12 @@ public class DocumentMK {
         public boolean getLogging() {
             return logging;
         }
-        
+
         public Builder setLeaseCheck(boolean leaseCheck) {
             this.leaseCheck = leaseCheck;
             return this;
         }
-        
+
         public boolean getLeaseCheck() {
             return leaseCheck;
         }
@@ -694,11 +694,11 @@ public class DocumentMK {
             this.leaseFailureHandler = leaseFailureHandler;
             return this;
         }
-        
+
         public LeaseFailureHandler getLeaseFailureHandler() {
             return leaseFailureHandler;
         }
-        
+
         /**
          * Set the document store to use. By default an in-memory store is used.
          *
@@ -766,12 +766,12 @@ public class DocumentMK {
             this.clusterId = clusterId;
             return this;
         }
-        
+
         public Builder setCacheSegmentCount(int cacheSegmentCount) {
             this.cacheSegmentCount = cacheSegmentCount;
             return this;
         }
-        
+
         public Builder setCacheStackMoveDistance(int cacheSegmentCount) {
             this.cacheStackMoveDistance = cacheSegmentCount;
             return this;
@@ -810,7 +810,7 @@ public class DocumentMK {
             this.memoryCacheSize = memoryCacheSize;
             return this;
         }
-        
+
         public Builder memoryCacheDistribution(int nodeCachePercentage,
                                                int prevDocCachePercentage,
                                                int childrenCachePercentage,
@@ -988,19 +988,19 @@ public class DocumentMK {
         public DocumentMK open() {
             return new DocumentMK(this);
         }
-        
+
         public Cache<PathRev, DocumentNodeState> buildNodeCache(DocumentNodeStore store) {
             return buildCache(CacheType.NODE, getNodeCacheSize(), store, null);
         }
-        
+
         public Cache<PathRev, DocumentNodeState.Children> buildChildrenCache() {
-            return buildCache(CacheType.CHILDREN, getChildrenCacheSize(), null, null);            
+            return buildCache(CacheType.CHILDREN, getChildrenCacheSize(), null, null);
         }
-        
+
         public Cache<StringValue, NodeDocument.Children> buildDocChildrenCache() {
             return buildCache(CacheType.DOC_CHILDREN, getDocChildrenCacheSize(), null, null);
         }
-        
+
         public Cache<PathRev, StringValue> buildMemoryDiffCache() {
             return buildCache(CacheType.DIFF, getMemoryDiffCacheSize(), null, null);
         }
@@ -1052,7 +1052,7 @@ public class DocumentMK {
             }
             return cache;
         }
-        
+
         public PersistentCache getPersistentCache() {
             if (persistentCacheURI == null) {
                 return null;
@@ -1067,7 +1067,7 @@ public class DocumentMK {
             }
             return persistentCache;
         }
-        
+
         private <K extends CacheValue, V extends CacheValue> Cache<K, V> buildCache(
                 String module,
                 long maxWeight,
@@ -1138,5 +1138,5 @@ public class DocumentMK {
         }
 
     }
-    
+
 }