pdfbox-commits mailing list archives

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

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

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

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java?rev=1783534&r1=1783533&r2=1783534&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/cos/COSDocument.java Sat Feb
18 13:09:20 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