From a7760df6846f34e4afde2d8ad974821bdcaafffc Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 1 Jul 2024 18:18:09 +0200 Subject: [PATCH] only accept DEBUG=true --- src/main/java/de/maishai/Compiler.java | 2 +- src/main/java/de/maishai/typedast/MethodContext.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/maishai/Compiler.java b/src/main/java/de/maishai/Compiler.java index 749afb5..9f2c4ca 100644 --- a/src/main/java/de/maishai/Compiler.java +++ b/src/main/java/de/maishai/Compiler.java @@ -90,7 +90,7 @@ public class Compiler { options.addOption("d", "debug", false, "Enable debug logging"); CommandLineParser parser = new DefaultParser(); - CommandLine cmd = null; + CommandLine cmd; try { cmd = parser.parse(options, args); } catch (ParseException e) { diff --git a/src/main/java/de/maishai/typedast/MethodContext.java b/src/main/java/de/maishai/typedast/MethodContext.java index 41b4e3b..3d31096 100644 --- a/src/main/java/de/maishai/typedast/MethodContext.java +++ b/src/main/java/de/maishai/typedast/MethodContext.java @@ -28,8 +28,7 @@ public class MethodContext { private final Deque