From 9a8d639ac5354c9bcf5b8ee364bb7a11ad7d2f83 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Thu, 21 Nov 2013 19:12:59 +0400 Subject: [PATCH] Fixed compilation. Ffter accidental using of method from too fresh IDEA. --- .../tests/org/jetbrains/jet/cli/CliBaseTest.java | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/compiler/tests/org/jetbrains/jet/cli/CliBaseTest.java b/compiler/tests/org/jetbrains/jet/cli/CliBaseTest.java index b84ed9fed32..35e30659118 100644 --- a/compiler/tests/org/jetbrains/jet/cli/CliBaseTest.java +++ b/compiler/tests/org/jetbrains/jet/cli/CliBaseTest.java @@ -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 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 lines = loadLines(argsFilePath); + List lines = FileUtil.loadLines(new FileInputStream(argsFilePath)); return ArrayUtil.toStringArray(ContainerUtil.mapNotNull(lines, new Function() { @Override