Author: centic
Date: Sat Feb 15 10:43:58 2014
New Revision: 1568614
URL: http://svn.apache.org/r1568614
Log:
Instead of using initCause() when re-throwing exceptions, it leads to better
stacktraces if a simple constructor-argument is used
Modified:
poi/trunk/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java
Modified: poi/trunk/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java
URL:
http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java?rev=1568614&r1=1568613&r2=1568614&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java (original)
+++ poi/trunk/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java Sat Feb
15 10:43:58 2014
@@ -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);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]