diff options
| author | EVE <EVE@EVE-PC> | 2017-03-14 12:07:14 -0400 |
|---|---|---|
| committer | EVE <EVE@EVE-PC> | 2017-03-14 12:07:14 -0400 |
| commit | 504ca816530efdff06bc202e0432ebd354aec304 (patch) | |
| tree | 4836932fb81d1d625470502c78c94d202c9a7420 /BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java | |
| parent | 5c1163df17c46f7d3e15b6c7949c38843ec56146 (diff) | |
Cleanup
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java index b0ceb3b..4dde938 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java +++ b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java @@ -2,7 +2,7 @@ package bjc.utils.cli; /** * Generic command implementation - * + * * @author ben * */ @@ -15,7 +15,7 @@ public class GenericCommand implements ICommand { /** * Create a new generic command - * + * * @param handler * The handler to use for the command * @param description @@ -24,13 +24,11 @@ public class GenericCommand implements ICommand { * The detailed help message for the command. May be null */ public GenericCommand(ICommandHandler handler, String description, String help) { - if (handler == null) { - throw new NullPointerException("Command handler must not be null"); - } + if(handler == null) throw new NullPointerException("Command handler must not be null"); this.handler = handler; - if (description == null) { + if(description == null) { this.help = new NullHelp(); } else { this.help = new GenericHelp(description, help); |
