Author: reschke
Date: Mon May 27 14:04:34 2019
New Revision: 1860137

URL: http://svn.apache.org/viewvc?rev=1860137&view=rev
Log:
OAK-8349: RDBDocumentStore*: "reset clusterId tool" in oak-run - whitespace 
cleanup

Modified:
    
jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/run/ResetClusterIdCommand.java

Modified: 
jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/run/ResetClusterIdCommand.java
URL: 
http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/run/ResetClusterIdCommand.java?rev=1860137&r1=1860136&r2=1860137&view=diff
==============================================================================
--- 
jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/run/ResetClusterIdCommand.java
 (original)
+++ 
jackrabbit/oak/trunk/oak-run/src/main/java/org/apache/jackrabbit/oak/run/ResetClusterIdCommand.java
 Mon May 27 14:04:34 2019
@@ -59,13 +59,13 @@ class ResetClusterIdCommand implements C
         NodeBuilder builder = store.getRoot().builder();
         NodeBuilder clusterConfigNode = builder.getChildNode(
                 ClusterRepositoryInfo.CLUSTER_CONFIG_NODE);
-        
+
         if (!clusterConfigNode.exists()) {
             // if it doesn't exist, then there is no way to delete
             System.out.println("clusterId was never set or already deleted.");
             return;
         }
-        
+
         if 
(!clusterConfigNode.hasProperty(ClusterRepositoryInfo.CLUSTER_ID_PROP)) {
             // the config node exists, but the clusterId not 
             // so again, no way to delete
@@ -80,7 +80,7 @@ class ResetClusterIdCommand implements C
 
             System.out.println("clusterId deleted successfully. (old id was " 
+ oldClusterId + ")");
         } catch (CommitFailedException e) {
-            System.err.println("Failed to delete clusterId due to exception: 
"+e.getMessage());
+            System.err.println("Failed to delete clusterId due to exception: " 
+ e.getMessage());
             e.printStackTrace();
         }
     }
@@ -115,14 +115,12 @@ class ResetClusterIdCommand implements C
                 closer.register(fileStore);
                 store = SegmentNodeStoreBuilders.builder(fileStore).build();
             }
-            
+
             deleteClusterId(store);
         } catch (Throwable e) {
             throw closer.rethrow(e);
         } finally {
             closer.close();
         }
-    
     }
-    
 }
\ No newline at end of file


Reply via email to