This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch 1.2.X
in repository https://gitbox.apache.org/repos/asf/mina-ftpserver.git
The following commit(s) were added to refs/heads/1.2.X by this push:
new 97142c9e Use stock JRE Charset instead of magic string
97142c9e is described below
commit 97142c9ece1cbe9cecd48d12134f342a3d4083a0
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Jul 16 08:48:56 2023 -0400
Use stock JRE Charset instead of magic string
---
core/src/test/java/org/apache/ftpserver/clienttests/I18NTest.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/core/src/test/java/org/apache/ftpserver/clienttests/I18NTest.java
b/core/src/test/java/org/apache/ftpserver/clienttests/I18NTest.java
index ea9658fd..0c3c8269 100644
--- a/core/src/test/java/org/apache/ftpserver/clienttests/I18NTest.java
+++ b/core/src/test/java/org/apache/ftpserver/clienttests/I18NTest.java
@@ -22,6 +22,8 @@ package org.apache.ftpserver.clienttests;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
import org.apache.commons.net.ftp.FTPClient;
import org.apache.ftpserver.test.TestUtil;
@@ -35,7 +37,7 @@ public class I18NTest extends ClientTestTemplate {
private static final String TESTDATA = "TESTDATA";
- private static final String ENCODING = "UTF-8";
+ private static final Charset ENCODING = StandardCharsets.UTF_8;
private static byte[] testData = null;