pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1716734 - /pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/text/TestTextStripper.java
Date Thu, 26 Nov 2015 16:25:20 GMT
Author: tilman
Date: Thu Nov 26 16:25:20 2015
New Revision: 1716734

URL: http://svn.apache.org/viewvc?rev=1716734&view=rev
Log:
PDFBOX-3044: make diff output utf8; remove unneeded cast

Modified:
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/text/TestTextStripper.java

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/text/TestTextStripper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/text/TestTextStripper.java?rev=1716734&r1=1716733&r2=1716734&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/text/TestTextStripper.java (original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/text/TestTextStripper.java Thu Nov
26 16:25:20 2015
@@ -360,8 +360,8 @@ public class TestTextStripper extends Te
                 // Compute diff. Get the Patch object. Patch is the container for computed
deltas.
                 Patch patch = DiffUtils.diff(original, revised);
 
-                PrintStream diffPS = new PrintStream(diffFile);
-                for (Object delta : (List<ChangeDelta>) patch.getDeltas())
+                PrintStream diffPS = new PrintStream(diffFile, ENCODING);
+                for (Object delta : patch.getDeltas())
                 {
                     if (delta instanceof ChangeDelta)
                     {



Mime
View raw message