You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2017/05/24 18:41:29 UTC
[41/50] [abbrv] commons-imaging git commit: Use constants defined in
StandardCharsets instead of loading Charset by name
Use constants defined in StandardCharsets instead of loading Charset by name
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/imaging/trunk@1795456 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/commons-imaging/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-imaging/commit/f50e85c1
Tree: http://git-wip-us.apache.org/repos/asf/commons-imaging/tree/f50e85c1
Diff: http://git-wip-us.apache.org/repos/asf/commons-imaging/diff/f50e85c1
Branch: refs/heads/master
Commit: f50e85c11120b664ceea185e9932ec557b61c0c3
Parents: 6d048e6
Author: Benedikt Ritter <br...@apache.org>
Authored: Wed May 17 21:05:42 2017 +0000
Committer: Benedikt Ritter <br...@apache.org>
Committed: Wed May 17 21:05:42 2017 +0000
----------------------------------------------------------------------
.../apache/commons/imaging/formats/pnm/PnmImageParserTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-imaging/blob/f50e85c1/src/test/java/org/apache/commons/imaging/formats/pnm/PnmImageParserTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/imaging/formats/pnm/PnmImageParserTest.java b/src/test/java/org/apache/commons/imaging/formats/pnm/PnmImageParserTest.java
index 31a61ce..693be92 100644
--- a/src/test/java/org/apache/commons/imaging/formats/pnm/PnmImageParserTest.java
+++ b/src/test/java/org/apache/commons/imaging/formats/pnm/PnmImageParserTest.java
@@ -18,6 +18,7 @@ package org.apache.commons.imaging.formats.pnm;
import java.io.IOException;
import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.Map;
@@ -29,7 +30,7 @@ import static org.junit.Assert.assertEquals;
public class PnmImageParserTest {
- private static final Charset US_ASCII = Charset.forName("US-ASCII");
+ private static final Charset US_ASCII = StandardCharsets.US_ASCII;
@Test
public void testGetImageInfo_happyCase() throws ImageReadException, IOException {