This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-codec.git
The following commit(s) were added to refs/heads/master by this push: new fd1cca61 Use String#isEmpty() fd1cca61 is described below commit fd1cca61236f8f56997bec224b979f4915bbd3da Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Nov 28 11:10:33 2023 -0500 Use String#isEmpty() --- src/main/java/org/apache/commons/codec/net/RFC1522Codec.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/codec/net/RFC1522Codec.java b/src/main/java/org/apache/commons/codec/net/RFC1522Codec.java index dfd77d1c..c71304a1 100644 --- a/src/main/java/org/apache/commons/codec/net/RFC1522Codec.java +++ b/src/main/java/org/apache/commons/codec/net/RFC1522Codec.java @@ -81,7 +81,7 @@ abstract class RFC1522Codec { throw new DecoderException("RFC 1522 violation: charset token not found"); } final String charset = text.substring(from, to); - if (charset.equals("")) { + if (charset.isEmpty()) { throw new DecoderException("RFC 1522 violation: charset not specified"); } from = to + 1;