diff --git a/d2j-base-cmd/src/main/java/com/googlecode/dex2jar/tools/BaseCmd.java b/d2j-base-cmd/src/main/java/com/googlecode/dex2jar/tools/BaseCmd.java index 303d6b02..b9c13eb8 100644 --- a/d2j-base-cmd/src/main/java/com/googlecode/dex2jar/tools/BaseCmd.java +++ b/d2j-base-cmd/src/main/java/com/googlecode/dex2jar/tools/BaseCmd.java @@ -25,7 +25,6 @@ import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import java.lang.reflect.Field; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.nio.charset.StandardCharsets; import java.nio.file.*; @@ -103,7 +102,6 @@ public abstract class BaseCmd { throw new IOException("cant find zipfs support"); } - @SuppressWarnings("serial") protected static class HelpException extends RuntimeException { private static final long serialVersionUID = 5538069795297477488L; @@ -120,7 +118,7 @@ public abstract class BaseCmd { @Retention(value = RetentionPolicy.RUNTIME) @Target(value = { ElementType.FIELD }) - static public @interface Opt { + public @interface Opt { String argName() default ""; String description() default ""; @@ -190,7 +188,7 @@ public abstract class BaseCmd { @Retention(value = RetentionPolicy.RUNTIME) @Target(value = { ElementType.TYPE }) - static public @interface Syntax { + public @interface Syntax { String cmd(); @@ -212,8 +210,8 @@ public abstract class BaseCmd { @Opt(opt = "h", longOpt = "help", hasArg = false, description = "Print this help message") private boolean printHelp = false; - protected String remainingArgs[]; - protected String orginalArgs[]; + protected String[] remainingArgs; + protected String[] originalArgs; public BaseCmd() { } @@ -235,8 +233,8 @@ public abstract class BaseCmd { this.desc = header; } - private Set