pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1654340 - in /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/annotation: LineAnnotationValidator.java SquareCircleAnnotationValidator.java
Date Fri, 23 Jan 2015 19:37:41 GMT
Author: jahewson
Date: Fri Jan 23 19:37:41 2015
New Revision: 1654340

URL: http://svn.apache.org/r1654340
Log:
PDFBOX-2589: Clean up ShowColorBoxes example (fix typo)

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/annotation/LineAnnotationValidator.java
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/annotation/SquareCircleAnnotationValidator.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/annotation/LineAnnotationValidator.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/annotation/LineAnnotationValidator.java?rev=1654340&r1=1654339&r2=1654340&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/annotation/LineAnnotationValidator.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/annotation/LineAnnotationValidator.java
Fri Jan 23 19:37:41 2015
@@ -68,7 +68,7 @@ public class LineAnnotationValidator ext
      */
     protected boolean checkIColors() throws ValidationException
     {
-        if (this.pdLine.getInteriorColour() != null)
+        if (this.pdLine.getInteriorColor() != null)
         {
             if (!searchRGBProfile())
             {

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/annotation/SquareCircleAnnotationValidator.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/annotation/SquareCircleAnnotationValidator.java?rev=1654340&r1=1654339&r2=1654340&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/annotation/SquareCircleAnnotationValidator.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/annotation/SquareCircleAnnotationValidator.java
Fri Jan 23 19:37:41 2015
@@ -21,14 +21,15 @@
 
 package org.apache.pdfbox.preflight.annotation;
 
-import static org.apache.pdfbox.preflight.PreflightConstants.ERROR_ANNOT_FORBIDDEN_COLOR;
-
 import org.apache.pdfbox.cos.COSDictionary;
 import org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationSquareCircle;
 import org.apache.pdfbox.preflight.PreflightContext;
 import org.apache.pdfbox.preflight.ValidationResult.ValidationError;
 import org.apache.pdfbox.preflight.exception.ValidationException;
 
+
+import static org.apache.pdfbox.preflight.PreflightConstants.ERROR_ANNOT_FORBIDDEN_COLOR;
+
 /**
  * Validation class for the Square/Circle Annotation
  */
@@ -67,7 +68,7 @@ public class SquareCircleAnnotationValid
      */
     protected boolean checkIColors() throws ValidationException
     {
-        if (this.pdSquareCircle.getInteriorColour() != null)
+        if (this.pdSquareCircle.getInteriorColor() != null)
         {
             if (!searchRGBProfile())
             {



Mime
View raw message