pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1774962 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java
Date Sun, 18 Dec 2016 21:22:40 GMT
Author: tilman
Date: Sun Dec 18 21:22:40 2016
New Revision: 1774962

URL: http://svn.apache.org/viewvc?rev=1774962&view=rev
Log:
PDFBOX-2852: replace for with while

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java?rev=1774962&r1=1774961&r2=1774962&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/text/PDFTextStripper.java Sun Dec
18 21:22:40 2016
@@ -1813,7 +1813,7 @@ public class PDFTextStripper extends Leg
 
             if ((level & 1) != 0)
             {
-                for (; --end >= start;)
+                while (--end >= start)
                 {
                     char character = word.charAt(end);
                     if (Character.isMirrored(word.codePointAt(end)))



Mime
View raw message