pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1783562 - /pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/process/reflect/ResourcesValidationProcess.java
Date Sat, 18 Feb 2017 15:20:06 GMT
Author: tilman
Date: Sat Feb 18 15:20:06 2017
New Revision: 1783562

URL: http://svn.apache.org/viewvc?rev=1783562&view=rev
Log:
PDFBOX-2852: remove "if" that is always true

Modified:
    pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/process/reflect/ResourcesValidationProcess.java

Modified: pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/process/reflect/ResourcesValidationProcess.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/process/reflect/ResourcesValidationProcess.java?rev=1783562&r1=1783561&r2=1783562&view=diff
==============================================================================
--- pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/process/reflect/ResourcesValidationProcess.java
(original)
+++ pdfbox/branches/2.0/preflight/src/main/java/org/apache/pdfbox/preflight/process/reflect/ResourcesValidationProcess.java
Sat Feb 18 15:20:06 2017
@@ -92,12 +92,9 @@ public class ResourcesValidationProcess
     protected void validateFonts(PreflightContext context, PDResources resources) throws
ValidationException
     {
         Map<String, PDFont> mapOfFonts = getFonts(resources.getCOSObject(), context);
-        if (mapOfFonts != null)
+        for (Entry<String, PDFont> entry : mapOfFonts.entrySet())
         {
-            for (Entry<String, PDFont> entry : mapOfFonts.entrySet())
-            {
-                ContextHelper.validateElement(context, entry.getValue(), FONT_PROCESS);
-            }
+            ContextHelper.validateElement(context, entry.getValue(), FONT_PROCESS);
         }
     }
 



Mime
View raw message