pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1647257 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java
Date Mon, 22 Dec 2014 08:25:02 GMT
Author: tilman
Date: Mon Dec 22 08:25:01 2014
New Revision: 1647257

URL: http://svn.apache.org/r1647257
Log:
PDFBOX-2576: delete methods with one or zero LoC, that were sometimes used and sometimes not

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java?rev=1647257&r1=1647256&r2=1647257&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java
Mon Dec 22 08:25:01 2014
@@ -683,7 +683,7 @@ public class PreflightParser extends Non
             {
                 // offset of indirect object in file
                 // ---- go to object start
-                setPdfSource(offsetOrObjstmObNr);
+                pdfSource.seek(offsetOrObjstmObNr);
                 // ---- we must have an indirect object
                 long readObjNr;
                 int readObjGen;
@@ -797,8 +797,6 @@ public class PreflightParser extends Non
                     addValidationError(new ValidationError(PreflightConstants.ERROR_SYNTAX_OBJ_DELIMITER,
                             "EOL expected after the 'endobj' keyword at offset "+pdfSource.getOffset()));
                 }
-
-                releasePdfSourceInputStream();
             }
             else
             {



Mime
View raw message