Commit 81ff3744 authored by Kristof Szabados's avatar Kristof Szabados
Browse files

lets not start using Java 1.7 features.


Signed-off-by: Kristof Szabados's avatarKristof Szabados <Kristof.Szabados@ericsson.com>
parent c6eb1c48
......@@ -14,6 +14,7 @@ import java.io.IOException;
import java.math.BigInteger;
import java.util.List;
import org.eclipse.titan.runtime.core.cfgparser.IOUtils;
import org.eclipse.titan.runtime.core.cfgparser.ComponentSectionHandler.Component;
import org.eclipse.titan.runtime.core.cfgparser.ExecuteSectionHandler.ExecuteItem;
import org.eclipse.titan.runtime.core.cfgparser.GroupSectionHandler.Group;
......@@ -133,19 +134,21 @@ public class ConfigData {
//Package-private
static String getConfigFileContent(File config_file) {
StringBuilder contentBuilder = new StringBuilder();
try (BufferedReader br = new BufferedReader(new FileReader(config_file)))
{
String currentLine;
while ((currentLine = br.readLine()) != null)
{
contentBuilder.append(currentLine).append("\n");
}
}
catch (IOException e)
{
e.printStackTrace();
}
return contentBuilder.toString();
BufferedReader br = null;
try {
br = new BufferedReader(new FileReader(config_file));
String currentLine;
while ((currentLine = br.readLine()) != null) {
contentBuilder.append(currentLine).append("\n");
}
} catch (IOException e) {
e.printStackTrace();
}
IOUtils.closeQuietly(br);
return contentBuilder.toString();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment