diff --git a/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoResultChecker.java b/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoResultChecker.java index c176c420b6d..f0a798ae05b 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoResultChecker.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoResultChecker.java @@ -23,5 +23,5 @@ import org.mozilla.javascript.Scriptable; * @author Pavel Talanov */ public interface RhinoResultChecker { - public void runChecks(Context context, Scriptable scope) throws Exception; + void runChecks(Context context, Scriptable scope) throws Exception; } diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestBase.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestBase.java index 9efe3a96949..36510df52fc 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestBase.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibTestBase.java @@ -17,21 +17,17 @@ */ package org.jetbrains.k2js.test.semantics; -import com.google.common.base.Function; import com.google.common.collect.Lists; import com.intellij.util.ArrayUtil; import org.jetbrains.annotations.NotNull; import org.jetbrains.jet.cli.common.ExitCode; import org.jetbrains.jet.cli.js.K2JSCompiler; import org.jetbrains.jet.cli.js.K2JSCompilerArguments; -import org.jetbrains.k2js.config.Config; import org.jetbrains.k2js.config.EcmaVersion; import org.jetbrains.k2js.test.SingleFileTranslationTest; import org.jetbrains.k2js.test.utils.LibraryFilePathsUtil; -import javax.annotation.Nullable; import java.io.File; -import java.util.EnumSet; import java.util.List; @SuppressWarnings("UseOfSystemOutOrSystemErr") @@ -41,13 +37,13 @@ abstract class StdLibTestBase extends SingleFileTranslationTest { super("stdlib/"); } - protected void performStdLibTest(@NotNull EnumSet ecmaVersions, + protected void performStdLibTest(@NotNull Iterable ecmaVersions, @NotNull String sourceDir, @NotNull String... stdLibFiles) throws Exception { List files = constructFilesToCompileList(sourceDir, stdLibFiles); compileFiles(ecmaVersions, files); } - private void compileFiles(@NotNull EnumSet ecmaVersions, @NotNull List files) throws Exception { + private void compileFiles(@NotNull Iterable ecmaVersions, @NotNull List files) throws Exception { List libFiles = LibraryFilePathsUtil.getBasicLibraryFiles(); for (EcmaVersion version : ecmaVersions) { String outputFilePath = getOutputFilePath(getTestName(false) + ".compiler.kt", version);