commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grobme...@apache.org
Subject svn commit: r769061 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
Date Mon, 27 Apr 2009 17:22:15 GMT
Author: grobmeier
Date: Mon Apr 27 17:22:14 2009
New Revision: 769061

URL: http://svn.apache.org/viewvc?rev=769061&view=rev
Log:
refined Exception catching

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java?rev=769061&r1=769060&r2=769061&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/zip/ZipArchiveEntry.java
Mon Apr 27 17:22:14 2009
@@ -279,7 +279,7 @@
         try {
             ZipExtraField[] local = ExtraFieldUtils.parse(extra, true);
             mergeExtraFields(local, true);
-        } catch (Exception e) {
+        } catch (ZipException e) {
             throw new RuntimeException(e.getMessage(), e);
         }
     }
@@ -301,7 +301,7 @@
         try {
             ZipExtraField[] central = ExtraFieldUtils.parse(b, false);
             mergeExtraFields(central, false);
-        } catch (Exception e) {
+        } catch (ZipException e) {
             throw new RuntimeException(e.getMessage(), e);
         }
     }



Mime
View raw message