Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2011-10-12 17:42:53 +0000
committerChris Goldthorpe2011-10-12 17:42:53 +0000
commita060838fb5b749bf2632e890047e823ade6e9760 (patch)
treebb68ad3c7eadc3a277c15dedb209b7a69e61c1bc /org.eclipse.ua.tests/base/org/eclipse/ua/tests/util
parente58c6b3fb4de4d8ce545d6702f2b4e5a9b1f03e4 (diff)
downloadeclipse.platform.ua-a060838fb5b749bf2632e890047e823ade6e9760.tar.gz
eclipse.platform.ua-a060838fb5b749bf2632e890047e823ade6e9760.tar.xz
eclipse.platform.ua-a060838fb5b749bf2632e890047e823ade6e9760.zip
Bug 360704 - [Test] warnings about not closing streams in
org.eclipse.ua.tests
Diffstat (limited to 'org.eclipse.ua.tests/base/org/eclipse/ua/tests/util')
-rw-r--r--org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java
index 0d44496e5..ac7056114 100644
--- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java
+++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2005, 2006 IBM Corporation and others.
+ * Copyright (c) 2005, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -67,6 +67,7 @@ public class FileUtil {
// filter windows-specific newline
result = result.replaceAll("\r", "");
}
+ out.close();
// ignore whitespace at start or end
return result.trim();
}

Back to the top