diff options
Diffstat (limited to 'src/integrationtest/org/apache/poi/stress/HDGFFileHandler.java')
-rw-r--r-- | src/integrationtest/org/apache/poi/stress/HDGFFileHandler.java | 5 |
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(); |