aboutsummaryrefslogtreecommitdiffstats
path: root/src/integrationtest/org/apache/poi/stress/HDGFFileHandler.java
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2017-12-28 08:45:26 +0000
committerDominik Stadler <centic@apache.org>2017-12-28 08:45:26 +0000
commit62c8296c709b7ea1291d87f5658b69d80b20ace7 (patch)
treef55bf50981221a711bccbe585b1cb0ab7ffaf4ee /src/integrationtest/org/apache/poi/stress/HDGFFileHandler.java
parent6e67de21602e2a33ff0420e83d914a7da61e27a3 (diff)
downloadpoi-62c8296c709b7ea1291d87f5658b69d80b20ace7.tar.gz
poi-62c8296c709b7ea1291d87f5658b69d80b20ace7.zip
Fix IntelliJ warnings and code formatting, generalize ExcelToHtmlUtils, use try-with-resources, update/enhance JavaDoc somewhat
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1819402 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/integrationtest/org/apache/poi/stress/HDGFFileHandler.java')
-rw-r--r--src/integrationtest/org/apache/poi/stress/HDGFFileHandler.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/integrationtest/org/apache/poi/stress/HDGFFileHandler.java b/src/integrationtest/org/apache/poi/stress/HDGFFileHandler.java
index a325f0d5ea..5482949e52 100644
--- a/src/integrationtest/org/apache/poi/stress/HDGFFileHandler.java
+++ b/src/integrationtest/org/apache/poi/stress/HDGFFileHandler.java
@@ -68,11 +68,8 @@ public class HDGFFileHandler extends POIFSFileHandler {
stream = new FileInputStream(file);
try {
- VisioTextExtractor extractor = new VisioTextExtractor(stream);
- try {
+ try (VisioTextExtractor extractor = new VisioTextExtractor(stream)) {
assertNotNull(extractor.getText());
- } finally {
- extractor.close();
}
} finally {
stream.close();