aboutsummaryrefslogtreecommitdiffstats
path: root/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestRichTextRun.java
diff options
context:
space:
mode:
authorAndreas Beeker <kiwiwings@apache.org>2017-05-31 14:10:18 +0000
committerAndreas Beeker <kiwiwings@apache.org>2017-05-31 14:10:18 +0000
commit90cb7589f293b8879225d2300a8ab09d0f4f1b72 (patch)
tree7be911ddccb4d41d4a15ece222eed8bc6718eb20 /src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestRichTextRun.java
parent217b2c2725535fbf133a23a6f19fc7695cbefb76 (diff)
downloadpoi-90cb7589f293b8879225d2300a8ab09d0f4f1b72.tar.gz
poi-90cb7589f293b8879225d2300a8ab09d0f4f1b72.zip
fix eclipse resource leak warnings
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1797043 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestRichTextRun.java')
-rw-r--r--src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestRichTextRun.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestRichTextRun.java b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestRichTextRun.java
index b32a20182a..9c978cb8c8 100644
--- a/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestRichTextRun.java
+++ b/src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestRichTextRun.java
@@ -397,7 +397,7 @@ public final class TestRichTextRun {
private static void assertMatchesFileC(HSLFSlideShow s) throws IOException {
// Grab the bytes of the file
NPOIFSFileSystem fs = new NPOIFSFileSystem(HSLFTestDataSamples.openSampleFileStream(filenameC));
- InputStream is = fs.createDocumentInputStream("PowerPoint Document");
+ InputStream is = fs.createDocumentInputStream(HSLFSlideShow.POWERPOINT_DOCUMENT);
byte[] raw_file = IOUtils.toByteArray(is);
is.close();
fs.close();
@@ -406,7 +406,7 @@ public final class TestRichTextRun {
ByteArrayOutputStream baos = new ByteArrayOutputStream();
s.write(baos);
fs = new NPOIFSFileSystem(new ByteArrayInputStream(baos.toByteArray()));
- is = fs.createDocumentInputStream("PowerPoint Document");
+ is = fs.createDocumentInputStream(HSLFSlideShow.POWERPOINT_DOCUMENT);
byte[] raw_ss = IOUtils.toByteArray(is);
is.close();
fs.close();