summaryrefslogtreecommitdiffstats
path: root/linguistics/src/test/java/com/yahoo/language/detect/AbstractDetectorTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'linguistics/src/test/java/com/yahoo/language/detect/AbstractDetectorTestCase.java')
-rw-r--r--linguistics/src/test/java/com/yahoo/language/detect/AbstractDetectorTestCase.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/linguistics/src/test/java/com/yahoo/language/detect/AbstractDetectorTestCase.java b/linguistics/src/test/java/com/yahoo/language/detect/AbstractDetectorTestCase.java
index c0f1b92a6bf..f2891a0c5d5 100644
--- a/linguistics/src/test/java/com/yahoo/language/detect/AbstractDetectorTestCase.java
+++ b/linguistics/src/test/java/com/yahoo/language/detect/AbstractDetectorTestCase.java
@@ -6,6 +6,7 @@ import org.junit.Test;
import java.nio.ByteBuffer;
import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
import static org.junit.Assert.*;
@@ -15,7 +16,7 @@ import static org.junit.Assert.*;
public class AbstractDetectorTestCase {
private static final Detection DETECTION = new Detection(Language.ARABIC, "encoding", true);
- private static final Charset UTF8 = Charset.forName("UTF-8");
+ private static final Charset UTF8 = StandardCharsets.UTF_8;
@Test
public void requireThatDetectStringForwardsUtf8Bytes() {