From 504ca816530efdff06bc202e0432ebd354aec304 Mon Sep 17 00:00:00 2001 From: EVE Date: Tue, 14 Mar 2017 12:07:14 -0400 Subject: Cleanup --- BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java') 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); -- cgit v1.2.3