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: [email protected]
For additional commands, e-mail: [email protected]