pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1663087 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/action/ActionManagerFactory.java
Date Sun, 01 Mar 2015 12:13:38 GMT
Author: tilman
Date: Sun Mar  1 12:13:38 2015
New Revision: 1663087

URL: http://svn.apache.org/r1663087
Log:
PDFBOX-2576: combine if statements

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

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/action/ActionManagerFactory.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/action/ActionManagerFactory.java?rev=1663087&r1=1663086&r2=1663087&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/action/ActionManagerFactory.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/action/ActionManagerFactory.java
Sun Mar  1 12:13:38 2015
@@ -90,15 +90,11 @@ public class ActionManagerFactory
 
         COSDocument cosDocument = ctx.getDocument().getDocument();
         COSBase oaDict = dictionary.getDictionaryObject(DICTIONARY_KEY_OPEN_ACTION);
-        if (oaDict != null)
+        if (oaDict != null && !COSUtils.isArray(oaDict, cosDocument))
         {
-            if (!COSUtils.isArray(oaDict, cosDocument))
-            {
-                callCreateAction(oaDict, ctx, result, alreadyCreated);
-            }
-            // else Nothing to do because of an array contains a Destination not an
-            // action.
+            callCreateAction(oaDict, ctx, result, alreadyCreated);
         }
+        // else nothing to do because an array contains a Destination and not an Action.
 
         COSBase aa = dictionary.getDictionaryObject(DICTIONARY_KEY_ADDITIONAL_ACTION);
         if (aa != null)



Mime
View raw message