]> source.dussan.org Git - poi.git/commitdiff
Instead of using initCause() when re-throwing exceptions, it leads to better stacktra...
authorDominik Stadler <centic@apache.org>
Sat, 15 Feb 2014 10:43:58 +0000 (10:43 +0000)
committerDominik Stadler <centic@apache.org>
Sat, 15 Feb 2014 10:43:58 +0000 (10:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568614 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java

index 6e5c913a3bdbe89fe20fdc2f70f628bdfe6918dc..25f9b01e15644b86f81ca4cd39a13fe8aaf905ac 100644 (file)
@@ -66,7 +66,7 @@ public class EncryptionInfo {
         try {
             eib = getBuilder(encryptionMode);
         } catch (Exception e) {
-            throw (IOException)new IOException().initCause(e);
+            throw new IOException(e);
         }
 
         eib.initialize(this, dis);