pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1661232 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
Date Fri, 20 Feb 2015 21:42:19 GMT
Author: tilman
Date: Fri Feb 20 21:42:19 2015
New Revision: 1661232

URL: http://svn.apache.org/r1661232
Log:
PDFBOX-2576: replace implementation type with base type

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java?rev=1661232&r1=1661231&r2=1661232&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/util/PDFTextStripper.java Fri Feb
20 21:42:19 2015
@@ -1751,7 +1751,7 @@ public class PDFTextStripper extends PDF
     private List<WordWithTextPositions> normalize(List<LineItem> line, boolean
isRtlDominant,
                                                   boolean hasRtl)
     {
-        LinkedList<WordWithTextPositions> normalized = new LinkedList<WordWithTextPositions>();
+        List<WordWithTextPositions> normalized = new LinkedList<WordWithTextPositions>();
         StringBuilder lineBuilder = new StringBuilder();
         List<TextPosition> wordPositions = new ArrayList<TextPosition>();
         // concatenate the pieces of text in opposite order if RTL is dominant
@@ -1844,7 +1844,7 @@ public class PDFTextStripper extends PDF
      * Used within {@link #normalize(List, boolean, boolean)} to handle a {@link TextPosition}.
      * @return The StringBuilder that must be used when calling this method.
      */
-    private StringBuilder normalizeAdd(LinkedList<WordWithTextPositions> normalized,
+    private StringBuilder normalizeAdd(List<WordWithTextPositions> normalized,
             StringBuilder lineBuilder, List<TextPosition> wordPositions, LineItem item)
     {
         if (item.isWordSeparator())



Mime
View raw message