poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cen...@apache.org
Subject svn commit: r1568614 - /poi/trunk/src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java
Date Sat, 15 Feb 2014 10:43:58 GMT
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: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message