diff --git a/.idea/libraries/js_test_libs.xml b/.idea/libraries/js_test_libs.xml index 88e66b5a258..3c413377069 100644 --- a/.idea/libraries/js_test_libs.xml +++ b/.idea/libraries/js_test_libs.xml @@ -1,7 +1,6 @@ - diff --git a/build.xml b/build.xml index 85bbfbd611d..c35f0827732 100644 --- a/build.xml +++ b/build.xml @@ -24,20 +24,22 @@ + + - - - + + + - + @@ -219,25 +221,26 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + @@ -277,8 +280,8 @@ - - + + @@ -308,7 +311,7 @@ - + @@ -449,7 +452,7 @@ - + @@ -577,7 +580,7 @@ - + diff --git a/js/js.tests/test/org/jetbrains/k2js/test/config/JsUnitTestReporter.java b/js/js.tests/test/org/jetbrains/k2js/test/config/JsUnitTestReporter.java index 3514581ce0e..498061924b9 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/config/JsUnitTestReporter.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/config/JsUnitTestReporter.java @@ -16,8 +16,7 @@ package org.jetbrains.k2js.test.config; -import closurecompiler.internal.com.google.common.collect.Lists; -import closurecompiler.internal.com.google.common.collect.Maps; +import com.intellij.util.containers.ContainerUtil; import junit.framework.Assert; import junit.framework.TestCase; import junit.framework.TestSuite; @@ -32,11 +31,11 @@ import java.util.Map; public class JsUnitTestReporter { @NotNull - private final Map finishedTests = Maps.newHashMap(); + private final Map finishedTests = ContainerUtil.newHashMap(); @NotNull - private final Map> errors = Maps.newHashMap(); + private final Map> errors = ContainerUtil.newHashMap(); @NotNull - private final List processedTests = Lists.newArrayList(); + private final List processedTests = ContainerUtil.newArrayList(); @Nullable private String currentTestName; @@ -69,7 +68,7 @@ public class JsUnitTestReporter { public void reportError(@NotNull String message) { List errorList = errors.get(currentTestName); if (errorList == null) { - errors.put(currentTestName, Lists.newArrayList(message)); + errors.put(currentTestName, ContainerUtil.newArrayList(message)); } else { errorList.add(message); @@ -78,7 +77,7 @@ public class JsUnitTestReporter { @NotNull private Collection getNewFinishedTests() { - ArrayList finishedTests = Lists.newArrayList(this.finishedTests.keySet()); + ArrayList finishedTests = ContainerUtil.newArrayList(this.finishedTests.keySet()); finishedTests.removeAll(processedTests); return finishedTests; } diff --git a/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoUtils.java b/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoUtils.java index 9af90be75fa..9448c167eb1 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoUtils.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/rhino/RhinoUtils.java @@ -16,9 +16,9 @@ package org.jetbrains.k2js.test.rhino; -import closurecompiler.internal.com.google.common.collect.Maps; import com.google.common.collect.Sets; import com.intellij.openapi.util.io.FileUtil; +import com.intellij.util.containers.ContainerUtil; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.jetbrains.k2js.config.EcmaVersion; @@ -43,7 +43,7 @@ public final class RhinoUtils { private static final NativeObject JSHINT_OPTIONS = new NativeObject(); @NotNull - private static final Map versionToScope = Maps.newHashMap(); + private static final Map versionToScope = ContainerUtil.newHashMap(); static { // don't read JS, use kotlin and idea debugger ;) diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibJsArrayScriptTest.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibJsArrayScriptTest.java index d9a25ba16d4..7613b2acfd0 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibJsArrayScriptTest.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibJsArrayScriptTest.java @@ -16,8 +16,8 @@ package org.jetbrains.k2js.test.semantics; -import closurecompiler.internal.com.google.common.collect.Maps; import com.google.common.collect.Lists; +import com.intellij.util.containers.ContainerUtil; import org.jetbrains.k2js.config.EcmaVersion; import org.jetbrains.k2js.test.rhino.CompositeRhinoResultsChecker; import org.jetbrains.k2js.test.rhino.RhinoFunctionResultChecker; @@ -38,7 +38,7 @@ public class StdLibJsArrayScriptTest extends StdLibTestBase { @Override protected void performChecksOnGeneratedJavaScript(String path, EcmaVersion version) throws Exception { - Map variables = Maps.newHashMap(); + Map variables = ContainerUtil.newHashMap(); String moduleId = moduleIdFromOutputFile(path); RhinoResultChecker checker = new CompositeRhinoResultsChecker( new RhinoFunctionResultChecker(moduleId, "jstest", "testSize", 3.0), diff --git a/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibQUnitTestSupport.java b/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibQUnitTestSupport.java index fd3d1f3654e..c6df3bffc76 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibQUnitTestSupport.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/semantics/StdLibQUnitTestSupport.java @@ -17,12 +17,12 @@ */ package org.jetbrains.k2js.test.semantics; -import closurecompiler.internal.com.google.common.collect.Maps; import com.google.common.collect.Lists; import org.jetbrains.k2js.config.EcmaVersion; import org.jetbrains.k2js.test.rhino.RhinoQUnitResultChecker; import org.jetbrains.k2js.test.rhino.RhinoResultChecker; +import java.util.HashMap; import java.util.Map; import static org.jetbrains.k2js.test.rhino.RhinoUtils.runRhinoTest; @@ -38,7 +38,7 @@ public abstract class StdLibQUnitTestSupport extends StdLibTestBase { } protected void runQUnitTestCase(String path, EcmaVersion version) throws Exception { - runQUnitTestCase(path, version, Maps.newHashMap()); + runQUnitTestCase(path, version, new HashMap()); } protected void runQUnitTestCase(String path, EcmaVersion version, Map variables) throws Exception { diff --git a/js/js.tests/test/org/jetbrains/k2js/test/utils/LibraryFilePathsUtil.java b/js/js.tests/test/org/jetbrains/k2js/test/utils/LibraryFilePathsUtil.java index 043c4354b4f..e4f38cff42d 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/utils/LibraryFilePathsUtil.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/utils/LibraryFilePathsUtil.java @@ -19,9 +19,9 @@ package org.jetbrains.k2js.test.utils; import com.google.common.base.Function; import com.google.common.collect.Lists; import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; import org.jetbrains.k2js.config.Config; -import javax.annotation.Nullable; import java.util.List; public final class LibraryFilePathsUtil { diff --git a/js/js.tests/test/org/jetbrains/k2js/test/utils/TranslationUtils.java b/js/js.tests/test/org/jetbrains/k2js/test/utils/TranslationUtils.java index 5737f786b21..a4afeefdc99 100644 --- a/js/js.tests/test/org/jetbrains/k2js/test/utils/TranslationUtils.java +++ b/js/js.tests/test/org/jetbrains/k2js/test/utils/TranslationUtils.java @@ -70,7 +70,7 @@ public final class TranslationUtils { List allLibFiles = getAllLibFiles(project); Predicate filesWithCode = new Predicate() { @Override - public boolean apply(@javax.annotation.Nullable PsiFile file) { + public boolean apply(@Nullable PsiFile file) { assert file != null; return isFileWithCode((JetFile) file); } diff --git a/js/js.tests/testLib/closure-compiler.jar b/js/js.tests/testLib/closure-compiler.jar deleted file mode 100644 index e0606abb346..00000000000 Binary files a/js/js.tests/testLib/closure-compiler.jar and /dev/null differ diff --git a/update_dependencies.xml b/update_dependencies.xml index 07a3d15d896..54c9c1aa34f 100644 --- a/update_dependencies.xml +++ b/update_dependencies.xml @@ -171,6 +171,19 @@ + + + + + + + + + + + +