summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/cli
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2016-11-10 19:44:22 -0500
committerbculkin2442 <bjculkin@mix.wvu.edu>2016-11-10 19:44:22 -0500
commitba9cf27de7e9f31dfa97a7266979f300101d67f9 (patch)
treedbf938e02d647e1be519808f8a14c6e954cab732 /BJC-Utils2/src/main/java/bjc/utils/cli
parent5cf7bcf156970fe72f79e40b8a6e320ea160ac83 (diff)
Doc updates
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/cli')
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommand.java14
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/cli/GenericCommandMode.java10
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/cli/GenericHelp.java6
-rw-r--r--BJC-Utils2/src/main/java/bjc/utils/cli/package-info.java1
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;