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
commit 3d1a286b2ad52dfabb4e34e3d71350bfba7d9aef Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Apr 13 08:37:03 2024 -0400 Javadoc Format tweaks --- src/main/java/org/apache/commons/codec/net/PercentCodec.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/apache/commons/codec/net/PercentCodec.java b/src/main/java/org/apache/commons/codec/net/PercentCodec.java index e10c978e..ee87cf97 100644 --- a/src/main/java/org/apache/commons/codec/net/PercentCodec.java +++ b/src/main/java/org/apache/commons/codec/net/PercentCodec.java @@ -42,7 +42,6 @@ public class PercentCodec implements BinaryEncoder, BinaryDecoder { /** * The escape character used by the Percent-Encoding in order to introduce an encoded character. */ - private static final byte ESCAPE_CHAR = '%'; /** @@ -97,7 +96,7 @@ public class PercentCodec implements BinaryEncoder, BinaryDecoder { } /** - * Decode bytes encoded with Percent-Encoding based on RFC 3986. The reverse process is performed in order to + * Decodes bytes encoded with Percent-Encoding based on RFC 3986. The reverse process is performed in order to * decode the encoded characters to Unicode. */ @Override @@ -105,7 +104,6 @@ public class PercentCodec implements BinaryEncoder, BinaryDecoder { if (bytes == null) { return null; } - final ByteBuffer buffer = ByteBuffer.allocate(expectedDecodingBytes(bytes)); for (int i = 0; i < bytes.length; i++) { final byte b = bytes[i]; @@ -175,7 +173,6 @@ public class PercentCodec implements BinaryEncoder, BinaryDecoder { if (bytes == null) { return null; } - final int expectedEncodingBytes = expectedEncodingBytes(bytes); final boolean willEncode = expectedEncodingBytes != bytes.length; if (willEncode || plusForSpace && containsSpace(bytes)) { @@ -244,7 +241,7 @@ public class PercentCodec implements BinaryEncoder, BinaryDecoder { } /** - * Adds the byte array into a BitSet for faster lookup + * Inserts the byte array into a BitSet for faster lookup. * * @param alwaysEncodeCharsArray */