pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1642970 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/ValidationResult.java
Date Tue, 02 Dec 2014 18:02:20 GMT
Author: tilman
Date: Tue Dec  2 18:02:19 2014
New Revision: 1642970

URL: http://svn.apache.org/r1642970
Log:
PDFBOX-2529: consider page in equals method

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

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/ValidationResult.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/ValidationResult.java?rev=1642970&r1=1642969&r2=1642970&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/ValidationResult.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/ValidationResult.java
Tue Dec  2 18:02:19 2014
@@ -427,6 +427,13 @@ public class ValidationResult
                     return false;
                 }  else if (!details.equals(ve.details)) {
                     return false;
+                }  else if (pageNumber != null && ve.pageNumber == null) {
+                    return false;
+                }  else if (pageNumber == null && ve.pageNumber != null) {
+                    return false;
+                }  else if (pageNumber != null && ve.pageNumber != null 
+                        && pageNumber.compareTo(pageNumber) == 0) {
+                    return false;
                 }
                 // check warning
                 return isWarning==ve.isWarning;



Mime
View raw message