diff options
author | Dominik Stadler <centic@apache.org> | 2021-01-30 18:42:05 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2021-01-30 18:42:05 +0000 |
commit | a10ca15627642bdaa87e54af937da98e0ee1de74 (patch) | |
tree | e2c97d9696ba80e320f1f629b2b66411da2f922e /src/integrationtest | |
parent | 615de587f7413f59a336c7f7adc52b8408e7b85b (diff) | |
download | poi-a10ca15627642bdaa87e54af937da98e0ee1de74.tar.gz poi-a10ca15627642bdaa87e54af937da98e0ee1de74.zip |
Apply IDE suggestions, add toString(), adjust JavaDoc and simplify code slightly
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1886061 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/integrationtest')
-rw-r--r-- | src/integrationtest/org/apache/poi/stress/AbstractFileHandler.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/integrationtest/org/apache/poi/stress/AbstractFileHandler.java b/src/integrationtest/org/apache/poi/stress/AbstractFileHandler.java index d6a7c46d7e..2497eb43cf 100644 --- a/src/integrationtest/org/apache/poi/stress/AbstractFileHandler.java +++ b/src/integrationtest/org/apache/poi/stress/AbstractFileHandler.java @@ -35,10 +35,8 @@ import org.apache.poi.extractor.POITextExtractor; import org.apache.poi.hpsf.extractor.HPSFPropertiesExtractor; import org.apache.poi.hssf.extractor.EventBasedExcelExtractor; import org.apache.poi.ooxml.POIXMLException; -import org.apache.poi.openxml4j.exceptions.OpenXML4JException; import org.apache.poi.ss.extractor.ExcelExtractor; import org.apache.poi.util.IOUtils; -import org.apache.xmlbeans.XmlException; /** * Base class with things that can be run for any supported file handler @@ -161,7 +159,7 @@ public abstract class AbstractFileHandler implements FileHandler { } } - private void handleExtractingAsStream(File file) throws IOException, OpenXML4JException, XmlException { + private void handleExtractingAsStream(File file) throws IOException { try (InputStream stream = new FileInputStream(file)) { try (POITextExtractor streamExtractor = ExtractorFactory.createExtractor(stream)) { assertNotNull(streamExtractor); |