Skip to content
Permalink
Browse files
Use isEmpty().
  • Loading branch information
garydgregory committed Jan 17, 2021
1 parent ee0a713 commit e10e8a6d2115082909c1afe44c46cf7c0aaa689d
Showing 1 changed file with 1 addition and 1 deletion.
@@ -231,7 +231,7 @@ private static String decodeWord(final String word) throws ParseException, Unsup
final String encodedText = word.substring(encodingPos + 1, encodedTextPos);

// seems a bit silly to encode a null string, but easy to deal with.
if (encodedText.length() == 0) {
if (encodedText.isEmpty()) {
return "";
}

0 comments on commit e10e8a6

Please sign in to comment.