Skip to content

Commit fd1cca6

Browse files
committed
Use String#isEmpty()
1 parent 35675c4 commit fd1cca6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/codec/net/RFC1522Codec.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected String decodeText(final String text)
8181
throw new DecoderException("RFC 1522 violation: charset token not found");
8282
}
8383
final String charset = text.substring(from, to);
84-
if (charset.equals("")) {
84+
if (charset.isEmpty()) {
8585
throw new DecoderException("RFC 1522 violation: charset not specified");
8686
}
8787
from = to + 1;

0 commit comments

Comments
 (0)