aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2014-02-15 10:43:58 +0000
committerDominik Stadler <centic@apache.org>2014-02-15 10:43:58 +0000
commita264f7c3c361430a9b04ac02f45396a339dc12c6 (patch)
treeed303ae9a937f45bc388c5440e23a19a93cb5ba6
parent0e9bbce9ed840f52a3bae7677867f3da5e79fc1b (diff)
downloadpoi-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.java2
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);