We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f70649 commit 275ab53Copy full SHA for 275ab53
1 file changed
src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java
@@ -118,7 +118,7 @@ public void testGetBytesUncheckedNullInput() {
118
119
@Test
120
public void testGetBytesUsAscii() throws UnsupportedEncodingException {
121
- final String charsetName = "US-ASCII";
+ final String charsetName = StandardCharsets.US_ASCII.name();
122
testGetBytesUnchecked(charsetName);
123
final byte[] expected = STRING_FIXTURE.getBytes(charsetName);
124
final byte[] actual = StringUtils.getBytesUsAscii(STRING_FIXTURE);
0 commit comments