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() {