pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1647053 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
Date Sat, 20 Dec 2014 21:23:35 GMT
Author: tilman
Date: Sat Dec 20 21:23:34 2014
New Revision: 1647053

URL: http://svn.apache.org/r1647053
Log:
PDFBOX-2576: fix javadoc

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

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java?rev=1647053&r1=1647052&r2=1647053&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java Sat Dec
20 21:23:34 2014
@@ -1537,15 +1537,17 @@ public abstract class BaseParser
     }
 
     /**
-     * This will read a long from the Stream and throw an {@link IllegalArgumentException}
if the long value
-     * has more than 10 digits (i.e. : bigger than {@link #OBJECT_NUMBER_THRESHOLD})
+     * This will read a long from the Stream and throw an {@link IOException} if
+     * the long value is negative or has more than 10 digits (i.e. : bigger than
+     * {@link #OBJECT_NUMBER_THRESHOLD})
+     *
      * @return the object number being read.
      * @throws IOException if an I/O error occurs
      */
     protected long readObjectNumber() throws IOException
     {
         long retval = readLong();
-        if(retval < 0 || retval >= OBJECT_NUMBER_THRESHOLD)
+        if (retval < 0 || retval >= OBJECT_NUMBER_THRESHOLD)
         {
             throw new IOException("Object Number '" + retval + "' has more than 10 digits
or is negative");
         }



Mime
View raw message