pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1783533 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java
Date Sat, 18 Feb 2017 13:09:15 GMT
Author: tilman
Date: Sat Feb 18 13:09:15 2017
New Revision: 1783533

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

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java?rev=1783533&r1=1783532&r2=1783533&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java Sat Feb 18 13:09:15
2017
@@ -442,12 +442,9 @@ public class COSDocument extends COSBase
                     }
                 }
             }
-            if (streams != null)
+            for (COSStream stream : streams)
             {
-                for(COSStream stream : streams)
-                {
-                    stream.close();
-                }
+                stream.close();
             }
             if (scratchFile != null)
             {



Mime
View raw message