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 6f706497 Javadoc
6f706497 is described below
commit 6f70649795787cdd558bdec84c80a08f952ab644
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Dec 23 11:17:58 2023 -0500
Javadoc
---
src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 878e0473..a0ce7926 100644
--- a/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java
+++ b/src/test/java/org/apache/commons/codec/binary/StringUtilsTest.java
@@ -93,7 +93,7 @@ public class StringUtilsTest {
@Test
public void testGetBytesIso8859_1() throws UnsupportedEncodingException {
- final String charsetName = "ISO-8859-1";
+ final String charsetName = StandardCharsets.ISO_8859_1.name();
testGetBytesUnchecked(charsetName);
final byte[] expected = STRING_FIXTURE.getBytes(charsetName);
final byte[] actual = StringUtils.getBytesIso8859_1(STRING_FIXTURE);
@@ -174,7 +174,7 @@ public class StringUtilsTest {
@Test
public void testNewStringIso8859_1() throws UnsupportedEncodingException {
- final String charsetName = "ISO-8859-1";
+ final String charsetName = StandardCharsets.ISO_8859_1.name();
testNewString(charsetName);
final String expected = new String(BYTES_FIXTURE, charsetName);
final String actual = StringUtils.newStringIso8859_1(BYTES_FIXTURE);