Skip to content

Commit 17e9b6f

Browse files
committed
Remove redundant keywords
1 parent dfe6d45 commit 17e9b6f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • src/main/java/org/apache/commons/codec/binary

src/main/java/org/apache/commons/codec/binary/Hex.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ public Object decode(final Object object) throws DecoderException {
480480
*/
481481
@Override
482482
public byte[] encode(final byte[] array) {
483-
return encodeHexString(array).getBytes(this.getCharset());
483+
return encodeHexString(array).getBytes(getCharset());
484484
}
485485

486486
/**
@@ -500,7 +500,7 @@ public byte[] encode(final byte[] array) {
500500
* @since 1.11
501501
*/
502502
public byte[] encode(final ByteBuffer array) {
503-
return encodeHexString(array).getBytes(this.getCharset());
503+
return encodeHexString(array).getBytes(getCharset());
504504
}
505505

506506
/**
@@ -521,7 +521,7 @@ public byte[] encode(final ByteBuffer array) {
521521
public Object encode(final Object object) throws EncoderException {
522522
final byte[] byteArray;
523523
if (object instanceof String) {
524-
byteArray = ((String) object).getBytes(this.getCharset());
524+
byteArray = ((String) object).getBytes(getCharset());
525525
} else if (object instanceof ByteBuffer) {
526526
byteArray = toByteArray((ByteBuffer) object);
527527
} else {

0 commit comments

Comments
 (0)