poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1551832 - /poi/trunk/src/java/org/apache/poi/hpsf/PropertySetFactory.java
Date Wed, 18 Dec 2013 04:08:03 GMT
Author: nick
Date: Wed Dec 18 04:08:03 2013
New Revision: 1551832

URL: http://svn.apache.org/r1551832
Log:
Fix bug #55901 - Avoid using RMI based
exception from PropertySetFactory, as it's not needed nor helpful

Modified:
    poi/trunk/src/java/org/apache/poi/hpsf/PropertySetFactory.java

Modified: poi/trunk/src/java/org/apache/poi/hpsf/PropertySetFactory.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hpsf/PropertySetFactory.java?rev=1551832&r1=1551831&r2=1551832&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hpsf/PropertySetFactory.java (original)
+++ poi/trunk/src/java/org/apache/poi/hpsf/PropertySetFactory.java Wed Dec 18 04:08:03 2013
@@ -17,10 +17,9 @@
 
 package org.apache.poi.hpsf;
 
-import java.io.InputStream;
 import java.io.IOException;
+import java.io.InputStream;
 import java.io.UnsupportedEncodingException;
-import java.rmi.UnexpectedException;
 
 import org.apache.poi.hpsf.wellknown.SectionIDMap;
 
@@ -70,7 +69,7 @@ public class PropertySetFactory
         {
             /* This exception will never be throws because we already checked
              * explicitly for this case above. */
-            throw new UnexpectedException(ex.toString());
+            throw new IllegalStateException(ex);
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message