You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ni...@apache.org on 2013/12/18 05:08:03 UTC

svn commit: r1551832 - /poi/trunk/src/java/org/apache/poi/hpsf/PropertySetFactory.java

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