aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/hpsf/PropertySetFactory.java
diff options
context:
space:
mode:
authorNick Burch <nick@apache.org>2013-12-18 04:08:03 +0000
committerNick Burch <nick@apache.org>2013-12-18 04:08:03 +0000
commit4135f846526646f5327a3b3890f69bd0cace9d4d (patch)
treed2d7e76d5fa1b8cbac7252545858753eed9318ab /src/java/org/apache/poi/hpsf/PropertySetFactory.java
parentef4388323aa4f450ca5200b6787874496506d395 (diff)
downloadpoi-4135f846526646f5327a3b3890f69bd0cace9d4d.tar.gz
poi-4135f846526646f5327a3b3890f69bd0cace9d4d.zip
Fix bug #55901 - Avoid using RMI based
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
Diffstat (limited to 'src/java/org/apache/poi/hpsf/PropertySetFactory.java')
-rw-r--r--src/java/org/apache/poi/hpsf/PropertySetFactory.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/java/org/apache/poi/hpsf/PropertySetFactory.java b/src/java/org/apache/poi/hpsf/PropertySetFactory.java
index 3d2611e849..6bff472e6a 100644
--- a/src/java/org/apache/poi/hpsf/PropertySetFactory.java
+++ b/src/java/org/apache/poi/hpsf/PropertySetFactory.java
@@ -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);
}
}