storm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject [1/3] storm git commit: STORM-1592: clojure code calling into Utils.exitProcess throws ClassCastException
Date Wed, 02 Mar 2016 18:32:36 GMT
Repository: storm
Updated Branches:
  refs/heads/master 906fcea61 -> df54280e3


STORM-1592: clojure code calling into Utils.exitProcess throws ClassCastException


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

Branch: refs/heads/master
Commit: a6bcfbc45752fde31b27377893e630509b1b193f
Parents: 87e3c24
Author: Robert (Bobby) Evans <evans@yahoo-inc.com>
Authored: Tue Mar 1 10:58:45 2016 -0600
Committer: Robert (Bobby) Evans <evans@yahoo-inc.com>
Committed: Tue Mar 1 10:58:45 2016 -0600

----------------------------------------------------------------------
 storm-core/src/jvm/org/apache/storm/utils/Utils.java | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/a6bcfbc4/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 bc12e8e..e04600a 100644
--- a/storm-core/src/jvm/org/apache/storm/utils/Utils.java
+++ b/storm-core/src/jvm/org/apache/storm/utils/Utils.java
@@ -1742,13 +1742,8 @@ public class Utils {
         return UUID.randomUUID().toString();
     }
 
-    public static void exitProcess (int val, Object... msg) {
-        StringBuilder errorMessage = new StringBuilder();
-        errorMessage.append("Halting process: ");
-        for (Object oneMessage: msg) {
-            errorMessage.append(oneMessage);
-        }
-        String combinedErrorMessage = errorMessage.toString();
+    public static void exitProcess (int val, String msg) {
+        String combinedErrorMessage = "Halting process: " + msg;
         LOG.error(combinedErrorMessage, new RuntimeException(combinedErrorMessage));
         Runtime.getRuntime().exit(val);
     }


Mime
View raw message