summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java
diff options
context:
space:
mode:
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.java10
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);