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/12/10 18:23:51 UTC
(commons-jexl) branch master updated: Use constant instead of 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-jexl.git
The following commit(s) were added to refs/heads/master by this push:
new 59957a79 Use constant instead of magic string
59957a79 is described below
commit 59957a79b594fa3764c3bcf66442b295d25304e4
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Dec 10 13:23:47 2023 -0500
Use constant instead of magic string
---
src/test/java/org/apache/commons/jexl3/BuilderTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/jexl3/BuilderTest.java b/src/test/java/org/apache/commons/jexl3/BuilderTest.java
index c9c233f9..e83c46fc 100644
--- a/src/test/java/org/apache/commons/jexl3/BuilderTest.java
+++ b/src/test/java/org/apache/commons/jexl3/BuilderTest.java
@@ -17,6 +17,7 @@
package org.apache.commons.jexl3;
import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
import org.apache.commons.jexl3.internal.introspection.SandboxUberspect;
import org.apache.commons.jexl3.introspection.JexlSandbox;
@@ -56,7 +57,7 @@ public class BuilderTest {
public void testOther() {
final ClassLoader cls = getClass().getClassLoader().getParent();
Assert.assertEquals(cls, builder().loader(cls).loader());
- final Charset cs = Charset.forName("UTF16");
+ final Charset cs = StandardCharsets.UTF_16;
Assert.assertEquals(cs, builder().charset(cs).charset());
Assert.assertEquals(cs, builder().loader(cs).charset());
final JexlUberspect u0 = builder().create().getUberspect();