pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1803840 - /pdfbox/trunk/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java
Date Wed, 02 Aug 2017 15:55:22 GMT
Author: tilman
Date: Wed Aug  2 15:55:22 2017
New Revision: 1803840

URL: http://svn.apache.org/viewvc?rev=1803840&view=rev
Log:
PDFBOX-2852: simplify

Modified:
    pdfbox/trunk/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java

Modified: pdfbox/trunk/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java?rev=1803840&r1=1803839&r2=1803840&view=diff
==============================================================================
--- pdfbox/trunk/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java (original)
+++ pdfbox/trunk/fontbox/src/test/java/org/apache/fontbox/cmap/TestCMapParser.java Wed Aug
 2 15:55:22 2017
@@ -17,7 +17,6 @@
 package org.apache.fontbox.cmap;
 
 import java.io.File;
-import java.io.FileInputStream;
 import java.io.IOException;
 
 import junit.framework.TestCase;
@@ -42,7 +41,7 @@ public class TestCMapParser extends Test
         File inDir = new File(resourceDir);
 
         CMapParser parser = new CMapParser();
-        CMap cMap = parser.parse(new FileInputStream(new File(inDir, "CMapTest")));
+        CMap cMap = parser.parse(new File(inDir, "CMapTest"));
 
         // char mappings
         byte[] bytes1 = {0, 1};



Mime
View raw message