pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1671303 - /pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java
Date Sat, 04 Apr 2015 20:02:07 GMT
Author: tilman
Date: Sat Apr  4 20:02:06 2015
New Revision: 1671303

URL: http://svn.apache.org/r1671303
Log:
PDFBOX-2576: use closeQuietly(), as suggested by Martin Schröder

Modified:
    pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java

Modified: pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java?rev=1671303&r1=1671302&r2=1671303&view=diff
==============================================================================
--- pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java (original)
+++ pdfbox/trunk/tools/src/main/java/org/apache/pdfbox/tools/ExtractText.java Sat Apr  4 20:02:06
2015
@@ -285,14 +285,8 @@ public class ExtractText
             }
             finally
             {
-                if( output != null )
-                {
-                    output.close();
-                }
-                if( document != null )
-                {
-                    document.close();
-                }
+                IOUtils.closeQuietly(output);
+                IOUtils.closeQuietly(document);
             }
         }
     }



Mime
View raw message