pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1867475 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/parser/PreflightParser.java
Date Tue, 24 Sep 2019 17:34:16 GMT
Author: tilman
Date: Tue Sep 24 17:34:16 2019
New Revision: 1867475

URL: http://svn.apache.org/viewvc?rev=1867475&view=rev
Log:
PDFBOX-4071: use functional operation

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=1867475&r1=1867474&r2=1867475&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
Tue Sep 24 17:34:16 2019
@@ -204,10 +204,7 @@ public class PreflightParser extends PDF
 
     protected void addValidationErrors(List<ValidationError> errors)
     {
-        for (ValidationError error : errors)
-        {
-            addValidationError(error);
-        }
+        errors.forEach(this::addValidationError);
     }
 
     @Override



Mime
View raw message