Skip to content

Commit 7388ec1

Browse files
committed
[CODEC-203] Add convenience method decodeHex(String).
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/codec/trunk@1701128 13f79535-47bb-0310-9956-ffa450edef68
1 parent 1b7b452 commit 7388ec1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/org/apache/commons/codec/binary/Base64Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ public void testByteToStringVariations() throws DecoderException {
12301230
final byte[] b1 = StringUtils.getBytesUtf8("Hello World");
12311231
final byte[] b2 = new byte[0];
12321232
final byte[] b3 = null;
1233-
final byte[] b4 = Hex.decodeHex("2bf7cc2701fe4397b49ebeed5acc7090".toCharArray()); // for
1233+
final byte[] b4 = Hex.decodeHex("2bf7cc2701fe4397b49ebeed5acc7090"); // for
12341234
// url-safe
12351235
// tests
12361236

@@ -1254,7 +1254,7 @@ public void testStringToByteVariations() throws DecoderException {
12541254
final String s3 = null;
12551255
final String s4a = "K/fMJwH+Q5e0nr7tWsxwkA==\r\n";
12561256
final String s4b = "K_fMJwH-Q5e0nr7tWsxwkA";
1257-
final byte[] b4 = Hex.decodeHex("2bf7cc2701fe4397b49ebeed5acc7090".toCharArray()); // for
1257+
final byte[] b4 = Hex.decodeHex("2bf7cc2701fe4397b49ebeed5acc7090"); // for
12581258
// url-safe
12591259
// tests
12601260

0 commit comments

Comments
 (0)