diff options
author | Dominik Stadler <centic@apache.org> | 2014-02-15 10:43:58 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2014-02-15 10:43:58 +0000 |
commit | a264f7c3c361430a9b04ac02f45396a339dc12c6 (patch) | |
tree | ed303ae9a937f45bc388c5440e23a19a93cb5ba6 | |
parent | 0e9bbce9ed840f52a3bae7677867f3da5e79fc1b (diff) | |
download | poi-a264f7c3c361430a9b04ac02f45396a339dc12c6.tar.gz poi-a264f7c3c361430a9b04ac02f45396a339dc12c6.zip |
Instead of using initCause() when re-throwing exceptions, it leads to better stacktraces if a simple constructor-argument is used
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1568614 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java b/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java index 6e5c913a3b..25f9b01e15 100644 --- a/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java +++ b/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java @@ -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); |