Skip to content

Commit 275ab53

Browse files
committed
Use StandardCharsets
1 parent 6f70649 commit 275ab53

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public void testGetBytesUncheckedNullInput() {
118118

119119
@Test
120120
public void testGetBytesUsAscii() throws UnsupportedEncodingException {
121-
final String charsetName = "US-ASCII";
121+
final String charsetName = StandardCharsets.US_ASCII.name();
122122
testGetBytesUnchecked(charsetName);
123123
final byte[] expected = STRING_FIXTURE.getBytes(charsetName);
124124
final byte[] actual = StringUtils.getBytesUsAscii(STRING_FIXTURE);

0 commit comments

Comments
 (0)