This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-codec.git


The following commit(s) were added to refs/heads/master by this push:
     new 275ab531 Use StandardCharsets
275ab531 is described below

commit 275ab531c546a3edb612aa48e6ac38c5c1579720
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Sat Dec 23 11:19:01 2023 -0500

    Use StandardCharsets
---
 src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java 
b/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java
index a0ce7926..34ed662d 100644
--- a/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java
+++ b/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java
@@ -118,7 +118,7 @@ public class StringUtilsTest {
 
     @Test
     public void testGetBytesUsAscii() throws UnsupportedEncodingException {
-        final String charsetName = "US-ASCII";
+        final String charsetName = StandardCharsets.US_ASCII.name();
         testGetBytesUnchecked(charsetName);
         final byte[] expected = STRING_FIXTURE.getBytes(charsetName);
         final byte[] actual = StringUtils.getBytesUsAscii(STRING_FIXTURE);

Reply via email to