pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1684955 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java
Date Thu, 11 Jun 2015 17:49:48 GMT
Author: tilman
Date: Thu Jun 11 17:49:48 2015
New Revision: 1684955

URL: http://svn.apache.org/r1684955
Log:
PDFBOX-2576: make fields that have accessors private; make field private that isn't used outside;
rename variable

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

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java?rev=1684955&r1=1684954&r2=1684955&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightDocument.java
Thu Jun 11 17:49:48 2015
@@ -33,13 +33,13 @@ import org.apache.pdfbox.preflight.utils
 public class PreflightDocument extends PDDocument
 {
 
-    protected ValidationResult result = new ValidationResult(true);
+    private ValidationResult result = new ValidationResult(true);
 
-    protected PreflightConfiguration config;
+    private PreflightConfiguration config;
 
-    protected PreflightContext context;
+    private PreflightContext context;
 
-    protected final Format specification;
+    private final Format specification;
 
     /**
      * Create an empty preflight document and load the default configuration for the given
format.
@@ -82,14 +82,13 @@ public class PreflightDocument extends P
      * 
      * @param doc
      * @param format
-     * @param cfg
-     * @throws IOException
+     * @param config
      */
-    public PreflightDocument(COSDocument doc, Format format, PreflightConfiguration cfg)
+    public PreflightDocument(COSDocument doc, Format format, PreflightConfiguration config)
     {
         super(doc);
         this.specification = format;
-        this.config = cfg;
+        this.config = config;
         if (this.config == null)
         {
             initConfiguration(format);
@@ -112,15 +111,15 @@ public class PreflightDocument extends P
         return result;
     }
 
-    public void setResult(ValidationResult _result)
+    public void setResult(ValidationResult result)
     {
         if (this.result != null)
         {
-            this.result.mergeResult(_result);
+            this.result.mergeResult(result);
         }
-        else if (_result != null)
+        else if (result != null)
         {
-            this.result = _result;
+            this.result = result;
         }
         else
         {



Mime
View raw message