commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1534238 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java
Date Mon, 21 Oct 2013 15:47:28 GMT
Author: bodewig
Date: Mon Oct 21 15:47:27 2013
New Revision: 1534238

URL: http://svn.apache.org/r1534238
Log:
no longer swallow exceptions on close

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java?rev=1534238&r1=1534237&r2=1534238&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java
Mon Oct 21 15:47:27 2013
@@ -73,15 +73,14 @@ public class SevenZOutputFile {
 
     /**
      * Closes the archive, calling {@link #finish} if necessary.
+     * 
+     * @throws IOException
      */
-    public void close() {
-        try {
-            if (!finished) {
-                finish();
-            }
-            file.close();
-        } catch (IOException ioEx) { // NOPMD
+    public void close() throws IOException {
+        if (!finished) {
+            finish();
         }
+        file.close();
     }
     
     /**



Mime
View raw message