]> source.dussan.org Git - poi.git/commitdiff
Fix bug #55901 - Avoid using RMI based
authorNick Burch <nick@apache.org>
Wed, 18 Dec 2013 04:08:03 +0000 (04:08 +0000)
committerNick Burch <nick@apache.org>
Wed, 18 Dec 2013 04:08:03 +0000 (04:08 +0000)
exception from PropertySetFactory, as it's not needed nor helpful

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1551832 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/hpsf/PropertySetFactory.java

index 3d2611e849c5126d3ff9764bcbf9c1b9bc782b62..6bff472e6a617ac29857f2ba67d5886d66048d61 100644 (file)
 
 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);
         }
     }