pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1833131 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
Date Thu, 07 Jun 2018 17:38:52 GMT
Author: tilman
Date: Thu Jun  7 17:38:52 2018
New Revision: 1833131

URL: http://svn.apache.org/viewvc?rev=1833131&view=rev
Log:
PDFBOX-4241: don't close the stream twice, as suggested by Harald Kuhr

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java?rev=1833131&r1=1833130&r2=1833131&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdfwriter/COSWriter.java Thu
Jun  7 17:38:52 2018
@@ -309,10 +309,6 @@ public class COSWriter implements ICOSVi
         {
             getStandardOutput().close();
         }
-        if (getOutput() != null)
-        {
-            getOutput().close();
-        }
         if (incrementalOutput != null)
         {
             incrementalOutput.close();



Mime
View raw message