pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1654296 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Date Fri, 23 Jan 2015 18:32:27 GMT
Author: tilman
Date: Fri Jan 23 18:32:26 2015
New Revision: 1654296

URL: http://svn.apache.org/r1654296
Log:
PDFBOX-2576: simply code

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java?rev=1654296&r1=1654295&r2=1654296&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/NonSequentialPDFParser.java
Fri Jan 23 18:32:26 2015
@@ -2386,8 +2386,7 @@ public class NonSequentialPDFParser exte
                 skipSpaces();
             }
             skipSpaces();
-            char c = (char)pdfSource.peek();
-            if(c < '0' || c > '9')
+            if (!isDigit())
             {
                 break;
             }



Mime
View raw message