summaryrefslogtreecommitdiff
path: root/xmerge
diff options
context:
space:
mode:
Diffstat (limited to 'xmerge')
-rw-r--r--xmerge/source/xmerge/java/org/openoffice/xmerge/test/ConverterInfoList.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/test/ConverterInfoList.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/test/ConverterInfoList.java
index 6868675bc625..3c9caf197d98 100644
--- a/xmerge/source/xmerge/java/org/openoffice/xmerge/test/ConverterInfoList.java
+++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/test/ConverterInfoList.java
@@ -59,8 +59,11 @@ public class ConverterInfoList {
InputStream is = c.getResourceAsStream(propsFile);
BufferedInputStream bis = new BufferedInputStream(is);
Properties props = new Properties();
- props.load(bis);
- bis.close();
+ try {
+ props.load(bis);
+ } finally {
+ bis.close();
+ }
int i = 1;
String jarFileName = "";
@@ -85,4 +88,4 @@ public class ConverterInfoList {
return jars.iterator();
}
-} \ No newline at end of file
+}