From 7afd0becf68e83f3f6a25f4514cb4d681d6151d9 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Tue, 11 Dec 2018 17:26:58 +0100 Subject: [PATCH] [HOTFIX] whoops Exception should be thrown inside else clause (when app name doesn't exist) --- src/main/java/profiler/utils/SparkUtils.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/profiler/utils/SparkUtils.java b/src/main/java/profiler/utils/SparkUtils.java index 1ead15a..4deee6b 100755 --- a/src/main/java/profiler/utils/SparkUtils.java +++ b/src/main/java/profiler/utils/SparkUtils.java @@ -51,9 +51,10 @@ public static String appName(final String s) { return "SparkZKSNARKLarge"; } else if (s.equals("vmsm-sorted-g1")) { return "SparkVMSMSortedG1"; + } else { + String exception = String.format("APP parameter '%s' not listed for profiling", s); + throw new IllegalArgumentException(exception); } - String exception = String.format("APP parameter '%s' not listed for profiling", s); - throw new IllegalArgumentException(exception); } public static Class[] zksparkClasses() {