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 17e9b6f98161aefae40922d24509625c120a0b78
Author: Gary Gregory <[email protected]>
AuthorDate: Tue Jul 9 08:57:25 2024 -0400

    Remove redundant keywords
---
 src/main/java/org/apache/commons/codec/binary/Hex.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/java/org/apache/commons/codec/binary/Hex.java 
b/src/main/java/org/apache/commons/codec/binary/Hex.java
index dc6d0806..7db25d5c 100644
--- a/src/main/java/org/apache/commons/codec/binary/Hex.java
+++ b/src/main/java/org/apache/commons/codec/binary/Hex.java
@@ -480,7 +480,7 @@ public class Hex implements BinaryEncoder, BinaryDecoder {
      */
     @Override
     public byte[] encode(final byte[] array) {
-        return encodeHexString(array).getBytes(this.getCharset());
+        return encodeHexString(array).getBytes(getCharset());
     }
 
     /**
@@ -500,7 +500,7 @@ public class Hex implements BinaryEncoder, BinaryDecoder {
      * @since 1.11
      */
     public byte[] encode(final ByteBuffer array) {
-        return encodeHexString(array).getBytes(this.getCharset());
+        return encodeHexString(array).getBytes(getCharset());
     }
 
     /**
@@ -521,7 +521,7 @@ public class Hex implements BinaryEncoder, BinaryDecoder {
     public Object encode(final Object object) throws EncoderException {
         final byte[] byteArray;
         if (object instanceof String) {
-            byteArray = ((String) object).getBytes(this.getCharset());
+            byteArray = ((String) object).getBytes(getCharset());
         } else if (object instanceof ByteBuffer) {
             byteArray = toByteArray((ByteBuffer) object);
         } else {

Reply via email to