Remove useless null checks

This fixes warnings from LGTM:

    This check is useless, inputStrings cannot be null here,
    since it is guarded by ... != ....

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-10-14 20:37:02 +02:00
parent 637ce7cdad
commit 56523da8a3
2 changed files with 2 additions and 8 deletions

View file

@ -134,10 +134,7 @@ public class ProtwordsFile extends DictionaryFile<ProtwordsItem> {
}
final String inputStrings = line;
String input = null;
if (inputStrings != null) {
input = unescape(inputStrings);
}
String input = unescape(inputStrings);
if (input.length() > 0) {
id++;

View file

@ -134,10 +134,7 @@ public class StopwordsFile extends DictionaryFile<StopwordsItem> {
}
final String inputStrings = line;
String input = null;
if (inputStrings != null) {
input = unescape(inputStrings);
}
String input = unescape(inputStrings);
if (input.length() > 0) {
id++;