Author: tilman
Date: Wed Oct  7 16:07:05 2015
New Revision: 1707330

URL: http://svn.apache.org/viewvc?rev=1707330&view=rev
Log:
PDFBOX-2852: change misleading field name

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=1707330&r1=1707329&r2=1707330&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
 Wed Oct  7 16:07:05 2015
@@ -89,7 +89,7 @@ public class PreflightParser extends PDF
      */
     public static final Charset encoding = Charset.forName("ISO-8859-1");
 
-    protected DataSource originalDocument;
+    protected DataSource dataSource;
 
     protected ValidationResult validationResult;
 
@@ -108,7 +108,7 @@ public class PreflightParser extends PDF
         // TODO move file handling outside of the parser
         super(new RandomAccessBufferedFileInputStream(file));
         this.setLenient(false);
-        this.originalDocument = new FileDataSource(file);
+        this.dataSource = new FileDataSource(file);
     }
 
     /**
@@ -135,7 +135,7 @@ public class PreflightParser extends PDF
         // TODO move file handling outside of the parser
         super(new 
RandomAccessBufferedFileInputStream(dataSource.getInputStream()));
         this.setLenient(false);
-        this.originalDocument = dataSource;
+        this.dataSource = dataSource;
     }
 
     /**
@@ -233,7 +233,7 @@ public class PreflightParser extends PDF
      */
     protected void createContext()
     {
-        this.ctx = new PreflightContext(this.originalDocument);
+        this.ctx = new PreflightContext(this.dataSource);
         ctx.setDocument(preflightDocument);
         preflightDocument.setContext(ctx);
         ctx.setXrefTrailerResolver(xrefTrailerResolver);


Reply via email to