File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/codec/binary Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments