pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1781421 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
Date Thu, 02 Feb 2017 16:24:58 GMT
Author: tilman
Date: Thu Feb  2 16:24:58 2017
New Revision: 1781421

URL: http://svn.apache.org/viewvc?rev=1781421&view=rev
Log:
PDFBOX-2852: remove redundant if statement

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java?rev=1781421&r1=1781420&r2=1781421&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDAcroForm.java
Thu Feb  2 16:24:58 2017
@@ -757,11 +757,7 @@ public final class PDAcroForm implements
     {
         // Check if there is a transformation within the XObjects content
     	PDResources resources = appearanceStream.getResources();
-        if (resources != null && resources.getXObjectNames().iterator().hasNext())
-        {        	
-            return true;
-        }
-        return false;
+        return resources != null && resources.getXObjectNames().iterator().hasNext();
     }
     
 }



Mime
View raw message