Fixed compilation.

Ffter accidental using of method from too fresh IDEA.
This commit is contained in:
Evgeny Gerashchenko
2013-11-21 19:12:59 +04:00
parent 2ecac63405
commit 9a8d639ac5
@@ -78,27 +78,13 @@ public class CliBaseTest {
JetTestUtils.assertEqualsToFile(new File(testDataDir + "/" + testName.getMethodName() + ".out"), actual);
}
// TODO: remove after update to newer IDEA where there is a FileUtil.loadLines(String)
@NotNull
public static List<String> loadLines(@NotNull String path) throws IOException {
BufferedReader reader = new BufferedReader(new FileReader(path));
try {
return FileUtil.loadLines(reader);
}
finally {
reader.close();
}
}
@NotNull
static String[] readArgs(
@NotNull String argsFilePath,
@NotNull final String testDataDir,
@NotNull final String tempDir
) throws IOException {
List<String> lines = loadLines(argsFilePath);
List<String> lines = FileUtil.loadLines(new FileInputStream(argsFilePath));
return ArrayUtil.toStringArray(ContainerUtil.mapNotNull(lines, new Function<String, String>() {
@Override