You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/07/16 12:20:56 UTC
[commons-digester] branch master updated: Use a JRE built-in Charset instead of a magic string
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-digester.git
The following commit(s) were added to refs/heads/master by this push:
new 0b4d51ed Use a JRE built-in Charset instead of a magic string
0b4d51ed is described below
commit 0b4d51ed073dcd9de39d93cb6777771880027c3f
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Jul 16 08:20:52 2023 -0400
Use a JRE built-in Charset instead of a magic string
---
.../org/apache/commons/digester3/binder/BinderClassLoaderTestCase.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/core/src/test/java/org/apache/commons/digester3/binder/BinderClassLoaderTestCase.java b/core/src/test/java/org/apache/commons/digester3/binder/BinderClassLoaderTestCase.java
index ad875ff6..a28ee83b 100644
--- a/core/src/test/java/org/apache/commons/digester3/binder/BinderClassLoaderTestCase.java
+++ b/core/src/test/java/org/apache/commons/digester3/binder/BinderClassLoaderTestCase.java
@@ -37,6 +37,7 @@ import java.net.URL;
import java.net.URLConnection;
import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;
+import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.Map;
@@ -185,7 +186,7 @@ public final class BinderClassLoaderTestCase
{
try
{
- IN_MEMORY_RESOURCES.put( "dummyResource", "Resource data".getBytes( "UTF-8" ) );
+ IN_MEMORY_RESOURCES.put( "dummyResource", "Resource data".getBytes(StandardCharsets.UTF_8) );
// put bytes of Dummy class
final String dummyClassName = Dummy.class.getName();