diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-09-25 19:04:55 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-09-25 19:04:55 -0400 |
| commit | 47b755db5ec896725038c45d8d6143c0f8821e8b (patch) | |
| tree | d641b368a59c96b0a462e313552b35c2242bfe74 /base/src/main/java/bjc/utils/cli | |
| parent | 6c6a51087e93f5a1f8bc3416f6b9b5eca55145b9 (diff) | |
Warning cleanup
Take care of some various warnings that were occuring
Diffstat (limited to 'base/src/main/java/bjc/utils/cli')
| -rw-r--r-- | base/src/main/java/bjc/utils/cli/objects/Command.java | 6 | ||||
| -rw-r--r-- | base/src/main/java/bjc/utils/cli/objects/DelimSplitterCLI.java | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/base/src/main/java/bjc/utils/cli/objects/Command.java b/base/src/main/java/bjc/utils/cli/objects/Command.java index ce2a985..af22643 100644 --- a/base/src/main/java/bjc/utils/cli/objects/Command.java +++ b/base/src/main/java/bjc/utils/cli/objects/Command.java @@ -263,7 +263,7 @@ public class Command { * The main thing this does is ignore blank lines, as well as comments marked by * #'s either at the start of the line or part of the way through the line. * - * @param ln + * @param lne * The string to get the command from. * * @param lno @@ -273,7 +273,9 @@ public class Command { * The name of where the I/O came from. * @return The parsed command */ - public static Command fromString(String ln, int lno, String srcName) { + public static Command fromString(String lne, int lno, String srcName) { + String ln = lne; + /* Ignore blank lines and comments. */ if (ln.equals("")) return null; diff --git a/base/src/main/java/bjc/utils/cli/objects/DelimSplitterCLI.java b/base/src/main/java/bjc/utils/cli/objects/DelimSplitterCLI.java index 59822e4..a6820f2 100644 --- a/base/src/main/java/bjc/utils/cli/objects/DelimSplitterCLI.java +++ b/base/src/main/java/bjc/utils/cli/objects/DelimSplitterCLI.java @@ -464,6 +464,9 @@ public class DelimSplitterCLI { intPrintDelimNode(tree.getChild(2), sb); break; + default: + // Don't think this is ever a case we have to handle, but maybe it is + break; } } |
