pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1727425 - in /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content: PreflightContentStream.java PreflightStreamEngine.java
Date Thu, 28 Jan 2016 19:30:37 GMT
Author: tilman
Date: Thu Jan 28 19:30:37 2016
New Revision: 1727425

URL: http://svn.apache.org/viewvc?rev=1727425&view=rev
Log:
PDFBOX-2852: fix typo, rename variables to standard

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightStreamEngine.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java?rev=1727425&r1=1727424&r2=1727425&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightContentStream.java
Thu Jan 28 19:30:37 2016
@@ -65,9 +65,9 @@ public class PreflightContentStream exte
     {
         try
         {
-            if (this.processeedPage.hasContents())
+            if (processedPage.hasContents())
             {
-                processPage(this.processeedPage);
+                processPage(processedPage);
             }
         }
         catch (ContentStreamException e)
@@ -91,13 +91,14 @@ public class PreflightContentStream exte
         try
         {
             // workaround for preflight not finding widget annotation parent PDPage
-            if (processeedPage == null)
+            if (processedPage == null)
             {
-                processChildStream(form, new PDPage()); // dummy page, resource lookup may
fail
+                // dummy page, resource lookup may fail
+                processChildStream(form, new PDPage()); 
             }
             else
             {
-                processChildStream(form, processeedPage);
+                processChildStream(form, processedPage);
             }
         }
         catch (ContentStreamException e)
@@ -120,7 +121,7 @@ public class PreflightContentStream exte
     {
         try
         {
-            processChildStream(pattern, processeedPage);
+            processChildStream(pattern, processedPage);
         }
         catch (ContentStreamException e)
         {

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightStreamEngine.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightStreamEngine.java?rev=1727425&r1=1727424&r2=1727425&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightStreamEngine.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/content/PreflightStreamEngine.java
Thu Jan 28 19:30:37 2016
@@ -105,14 +105,13 @@ public abstract class PreflightStreamEng
 
     protected PreflightContext context = null;
     protected COSDocument cosDocument = null;
-    protected PDPage processeedPage = null;
+    protected PDPage processedPage = null;
 
-    public PreflightStreamEngine(PreflightContext _context, PDPage _page)
+    public PreflightStreamEngine(PreflightContext context, PDPage page)
     {
-        super();
-        this.context = _context;
-        this.cosDocument = _context.getDocument().getDocument();
-        this.processeedPage = _page;
+        this.context = context;
+        this.cosDocument = context.getDocument().getDocument();
+        this.processedPage = page;
 
         // Graphics operators
         addOperator(new SetLineWidth());



Mime
View raw message