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/ioutils | |
| parent | 6c6a51087e93f5a1f8bc3416f6b9b5eca55145b9 (diff) | |
Warning cleanup
Take care of some various warnings that were occuring
Diffstat (limited to 'base/src/main/java/bjc/utils/ioutils')
3 files changed, 13 insertions, 6 deletions
diff --git a/base/src/main/java/bjc/utils/ioutils/LevelSplitter.java b/base/src/main/java/bjc/utils/ioutils/LevelSplitter.java index 735dd3a..c2467ae 100644 --- a/base/src/main/java/bjc/utils/ioutils/LevelSplitter.java +++ b/base/src/main/java/bjc/utils/ioutils/LevelSplitter.java @@ -76,6 +76,9 @@ public class LevelSplitter { case '>': nestLevel = Math.max(0, nestLevel - 1); break; + default: + // Not a character we care about + break; } } @@ -156,7 +159,7 @@ public class LevelSplitter { } } else { /* - * @TODO Ben Culkin 9/4/18 + * @TODO Ben Culkin 9/4/18 :DelimiterEnd * * This currently crashes if the string ends with one of the delimiters in * question. @@ -182,6 +185,9 @@ public class LevelSplitter { case '>': nestLevel = Math.max(0, nestLevel - 1); break; + default: + // Not a character we care about + break; } } @@ -266,6 +272,9 @@ public class LevelSplitter { case '>': nestLevel = Math.max(0, nestLevel - 1); break; + default: + // Not a character we care about + break; } } diff --git a/base/src/main/java/bjc/utils/ioutils/RuleBasedConfigReader.java b/base/src/main/java/bjc/utils/ioutils/RuleBasedConfigReader.java index 88a3b81..fe303f3 100644 --- a/base/src/main/java/bjc/utils/ioutils/RuleBasedConfigReader.java +++ b/base/src/main/java/bjc/utils/ioutils/RuleBasedConfigReader.java @@ -244,7 +244,9 @@ public class RuleBasedConfigReader<E> { this.start = start; } - private boolean startRule(final E state, boolean isRuleOpen, final String line) { + private boolean startRule(final E state, boolean isRulOpen, final String line) { + boolean isRuleOpen = isRulOpen; + /* * Create the line tokenizer */ diff --git a/base/src/main/java/bjc/utils/ioutils/SimpleProperties.java b/base/src/main/java/bjc/utils/ioutils/SimpleProperties.java index e035894..754ed45 100644 --- a/base/src/main/java/bjc/utils/ioutils/SimpleProperties.java +++ b/base/src/main/java/bjc/utils/ioutils/SimpleProperties.java @@ -170,19 +170,16 @@ public class SimpleProperties implements Map<String, String> { return props.isEmpty(); } - @SuppressWarnings("unlikely-arg-type") @Override public boolean containsKey(final Object key) { return props.containsKey(key); } - @SuppressWarnings("unlikely-arg-type") @Override public boolean containsValue(final Object value) { return props.containsValue(value); } - @SuppressWarnings("unlikely-arg-type") @Override public String get(final Object key) { return props.get(key); @@ -193,7 +190,6 @@ public class SimpleProperties implements Map<String, String> { return props.put(key, value); } - @SuppressWarnings("unlikely-arg-type") @Override public String remove(final Object key) { return props.remove(key); |
