Revert some code format problems caused by auto merging

Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/4e26f06b
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/4e26f06b
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/4e26f06b

Branch: refs/heads/master
Commit: 4e26f06b2d7d343953985ed611b58193c4246bbb
Parents: 6c0f4f0
Author: basti.lj <[email protected]>
Authored: Sun Feb 14 14:33:44 2016 +0800
Committer: basti.lj <[email protected]>
Committed: Sun Feb 14 14:33:44 2016 +0800

----------------------------------------------------------------------
 .../src/clj/org/apache/storm/daemon/acker.clj   |  3 ++-
 .../src/clj/org/apache/storm/daemon/common.clj  |  6 ++---
 .../src/jvm/org/apache/storm/utils/Utils.java   | 24 ++++++++++----------
 3 files changed, 17 insertions(+), 16 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/4e26f06b/storm-core/src/clj/org/apache/storm/daemon/acker.clj
----------------------------------------------------------------------
diff --git a/storm-core/src/clj/org/apache/storm/daemon/acker.clj 
b/storm-core/src/clj/org/apache/storm/daemon/acker.clj
index 7e17d40..9aa15ae 100644
--- a/storm-core/src/clj/org/apache/storm/daemon/acker.clj
+++ b/storm-core/src/clj/org/apache/storm/daemon/acker.clj
@@ -44,7 +44,8 @@
 (defn -prepare [^org.apache.storm.daemon.acker this conf context collector]
   (let [^IBolt ret (mk-acker-bolt)]
     (.. this state (set ret))
-    (.prepare ret conf context collector)))
+    (.prepare ret conf context collector)
+    ))
 
 (defn -execute [^org.apache.storm.daemon.acker this tuple]
   (let [^IBolt delegate (.. this state (get))]

http://git-wip-us.apache.org/repos/asf/storm/blob/4e26f06b/storm-core/src/clj/org/apache/storm/daemon/common.clj
----------------------------------------------------------------------
diff --git a/storm-core/src/clj/org/apache/storm/daemon/common.clj 
b/storm-core/src/clj/org/apache/storm/daemon/common.clj
index 42fa1fa..eb1ec1e 100644
--- a/storm-core/src/clj/org/apache/storm/daemon/common.clj
+++ b/storm-core/src/clj/org/apache/storm/daemon/common.clj
@@ -28,7 +28,7 @@
   (:import [org.apache.storm.security.auth IAuthorizer])
   (:import [java.io InterruptedIOException]
            [org.json.simple JSONValue])
-  (:require [clojure.set :as set])
+  (:require [clojure.set :as set])  
   (:require [org.apache.storm.daemon.acker :as acker])
   (:require [org.apache.storm.thrift :as thrift])
   (:require [metrics.core  :refer [default-registry]]))
@@ -144,8 +144,8 @@
 
 (defn component-conf [component]
   (->> component
-      .get_common
-      .get_json_conf
+       .get_common
+       .get_json_conf
        (#(if % (JSONValue/parse %)))
        clojurify-structure))
 

http://git-wip-us.apache.org/repos/asf/storm/blob/4e26f06b/storm-core/src/jvm/org/apache/storm/utils/Utils.java
----------------------------------------------------------------------
diff --git a/storm-core/src/jvm/org/apache/storm/utils/Utils.java 
b/storm-core/src/jvm/org/apache/storm/utils/Utils.java
index 44fb1a1..d098d83 100644
--- a/storm-core/src/jvm/org/apache/storm/utils/Utils.java
+++ b/storm-core/src/jvm/org/apache/storm/utils/Utils.java
@@ -512,7 +512,7 @@ public class Utils {
 
         if(store != null) {
             // store can be null during testing when mocking utils.
-        store.prepare(nconf, baseDir, nimbusInfo);
+            store.prepare(nconf, baseDir, nimbusInfo);
         }
         return store;
     }
@@ -946,17 +946,17 @@ public class Utils {
                 inputStream = new BufferedInputStream(new 
FileInputStream(inFile));
             }
             try (TarArchiveInputStream tis = new 
TarArchiveInputStream(inputStream)) {
-            for (TarArchiveEntry entry = tis.getNextTarEntry(); entry != null; 
) {
-                unpackEntries(tis, entry, untarDir);
-                entry = tis.getNextTarEntry();
-            }
+                for (TarArchiveEntry entry = tis.getNextTarEntry(); entry != 
null; ) {
+                    unpackEntries(tis, entry, untarDir);
+                    entry = tis.getNextTarEntry();
+                }
             }
         } finally {
             if(inputStream != null) {
                 inputStream.close();
+            }
         }
     }
-                }
 
     private static void unpackEntries(TarArchiveInputStream tis,
                                       TarArchiveEntry entry, File outputDir) 
throws IOException {
@@ -975,7 +975,7 @@ public class Utils {
         if (!outputFile.getParentFile().exists()) {
             if (!outputFile.getParentFile().mkdirs()) {
                 throw new IOException("Mkdirs failed to create tar internal 
dir "
-                        + outputDir);
+                                      + outputDir);
             }
         }
         int count;
@@ -1190,11 +1190,11 @@ public class Utils {
         }
         String stormZKUser = (String)conf.get(Config.STORM_ZOOKEEPER_SUPERACL);
         if (stormZKUser == null) {
-            throw new IllegalArgumentException("Authentication is enabled but 
"+Config.STORM_ZOOKEEPER_SUPERACL+" is not set");
+            throw new IllegalArgumentException("Authentication is enabled but 
" + Config.STORM_ZOOKEEPER_SUPERACL + " is not set");
         }
-        String[] split = stormZKUser.split(":",2);
+        String[] split = stormZKUser.split(":", 2);
         if (split.length != 2) {
-            throw new 
IllegalArgumentException(Config.STORM_ZOOKEEPER_SUPERACL+" does not appear to 
be in the form scheme:acl, i.e. sasl:storm-user");
+            throw new IllegalArgumentException(Config.STORM_ZOOKEEPER_SUPERACL 
+ " does not appear to be in the form scheme:acl, i.e. sasl:storm-user");
         }
         ArrayList<ACL> ret = new ArrayList<ACL>(ZooDefs.Ids.CREATOR_ALL_ACL);
         ret.add(new ACL(ZooDefs.Perms.ALL, new Id(split[0], split[1])));
@@ -1258,7 +1258,7 @@ public class Utils {
         return dump.toString();
     }
 
-    /*
+    /**
      * Creates an instance of the pluggable SerializationDelegate or falls 
back to
      * DefaultSerializationDelegate if something goes wrong.
      * @param stormConf The config from which to pull the name of the 
pluggable class.
@@ -1316,7 +1316,7 @@ public class Utils {
                         if (!file.getParentFile().mkdirs()) {
                             if (!file.getParentFile().isDirectory()) {
                                 throw new IOException("Mkdirs failed to create 
" +
-                                        file.getParentFile().toString());
+                                                      
file.getParentFile().toString());
                             }
                         }
                         OutputStream out = new FileOutputStream(file);

Reply via email to