From a060838fb5b749bf2632e890047e823ade6e9760 Mon Sep 17 00:00:00 2001 From: Chris Goldthorpe Date: Wed, 12 Oct 2011 10:42:53 -0700 Subject: Bug 360704 - [Test] warnings about not closing streams in org.eclipse.ua.tests --- org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'org.eclipse.ua.tests/base/org/eclipse/ua/tests/util') 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(); } -- cgit v1.2.3