aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2018-12-26 13:28:10 +0000
committerDominik Stadler <centic@apache.org>2018-12-26 13:28:10 +0000
commit6f2f283db887c6179d36a7f3c0bfc5b98aaa00c8 (patch)
treef1bc97f162ac391d6a8a47c1335c2a383c555520 /src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java
parentd40eb6f37f56a247669d2b4e0113d9587589d318 (diff)
downloadpoi-6f2f283db887c6179d36a7f3c0bfc5b98aaa00c8.tar.gz
poi-6f2f283db887c6179d36a7f3c0bfc5b98aaa00c8.zip
Fix various IDE warnings and some JavaDoc adjustments
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849763 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java')
-rw-r--r--src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java
index 3cf0c9a100..f2a111ea3b 100644
--- a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java
+++ b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java
@@ -579,20 +579,20 @@ public final class TestBugs {
@Test
public void bug47261() throws IOException {
- HSLFSlideShow ppt = open("bug47261.ppt");
- ppt.removeSlide(0);
- ppt.createSlide();
- HSLFTestDataSamples.writeOutAndReadBack(ppt).close();
- ppt.close();
+ try (HSLFSlideShow ppt = open("bug47261.ppt")) {
+ ppt.removeSlide(0);
+ ppt.createSlide();
+ HSLFTestDataSamples.writeOutAndReadBack(ppt).close();
+ }
}
@Test
public void bug56240() throws IOException {
- HSLFSlideShow ppt = open("bug56240.ppt");
- int slideCnt = ppt.getSlides().size();
- assertEquals(105, slideCnt);
- HSLFTestDataSamples.writeOutAndReadBack(ppt).close();
- ppt.close();
+ try (HSLFSlideShow ppt = open("bug56240.ppt")) {
+ int slideCnt = ppt.getSlides().size();
+ assertEquals(105, slideCnt);
+ HSLFTestDataSamples.writeOutAndReadBack(ppt).close();
+ }
}
@Test