diff options
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli')
4 files changed, 12 insertions, 19 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 54d2fa0..7a38e9b 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java +++ b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java @@ -1,7 +1,5 @@ package bjc.utils.cli; -import org.eclipse.jdt.annotation.Nullable; - /** * Generic command implementation * @@ -18,14 +16,14 @@ public class GenericCommand implements ICommand { * Create a new generic command * * @param handler - * The handler to use for the command + * The handler to use for the command * @param description - * The description of the command. May be null + * The description of the command. May be null * @param help - * The detailed help message for the command. May be null + * The detailed help message for the command. May be null */ - public GenericCommand(ICommandHandler handler, @Nullable String description, - @Nullable String help) { + public GenericCommand(ICommandHandler handler, String description, + String help) { if (handler == null) { throw new NullPointerException( "Command handler must not be null"); @@ -59,4 +57,4 @@ public class GenericCommand implements ICommand { public boolean isAlias() { return false; } -}
\ No newline at end of file +} diff --git a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommandMode.java b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommandMode.java index 4aab8a4..b6c6ea4 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommandMode.java +++ b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommandMode.java @@ -7,8 +7,6 @@ import java.util.function.Consumer; import bjc.utils.funcdata.FunctionalMap; import bjc.utils.funcdata.IMap; -import org.eclipse.jdt.annotation.Nullable; - /** * A general command mode, with a customizable set of commands * @@ -381,7 +379,7 @@ public class GenericCommandMode implements ICommandMode { * The custom prompt for this mode, or null to disable the * custom prompt */ - public void setCustomPrompt(@Nullable String prompt) { + public void setCustomPrompt( String prompt) { customPrompt = prompt; } @@ -392,7 +390,7 @@ public class GenericCommandMode implements ICommandMode { * The desired name of this mode, or null to use the default * name */ - public void setModeName(@Nullable String name) { + public void setModeName( String name) { modeName = name; } @@ -404,7 +402,7 @@ public class GenericCommandMode implements ICommandMode { * on unknown commands */ public void setUnknownCommandHandler( - @Nullable BiConsumer<String, String[]> handler) { + BiConsumer<String, String[]> handler) { if (handler == null) { throw new NullPointerException("Handler must not be null"); } @@ -429,4 +427,4 @@ public class GenericCommandMode implements ICommandMode { defaultHandlers.put("exit", buildExitCommand()); } -}
\ No newline at end of file +} diff --git a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericHelp.java b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericHelp.java index 2e46202..f4095f3 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/cli/GenericHelp.java +++ b/BJC-Utils2/src/main/java/bjc/utils/cli/GenericHelp.java @@ -1,7 +1,5 @@ package bjc.utils.cli; -import org.eclipse.jdt.annotation.Nullable; - /** * Generic implementation of a help topic * @@ -22,7 +20,7 @@ public class GenericHelp implements ICommandHelp { * The description of this help topic, or null if this help * topic doesn't have a more detailed description */ - public GenericHelp(String summary, @Nullable String description) { + public GenericHelp(String summary, String description) { if (summary == null) { throw new NullPointerException( "Help summary must be non-null"); @@ -46,4 +44,4 @@ public class GenericHelp implements ICommandHelp { return summary; } -}
\ No newline at end of file +} diff --git a/BJC-Utils2/src/main/java/bjc/utils/cli/package-info.java b/BJC-Utils2/src/main/java/bjc/utils/cli/package-info.java index 1bdfd14..012ccc0 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/cli/package-info.java +++ b/BJC-Utils2/src/main/java/bjc/utils/cli/package-info.java @@ -4,5 +4,4 @@ * @author ben * */ -@org.eclipse.jdt.annotation.NonNullByDefault package bjc.utils.cli; |
