diff --git a/platform/core-api/core-api.iml b/platform/core-api/core-api.iml
index b56ccffb06aa..d8bbd4ebc7c8 100644
--- a/platform/core-api/core-api.iml
+++ b/platform/core-api/core-api.iml
@@ -16,5 +16,6 @@
+
\ No newline at end of file
diff --git a/platform/core-api/src/com/intellij/util/InstanceofCheckerGenerator.java b/platform/core-api/src/com/intellij/util/InstanceofCheckerGenerator.java
index eee6fb6a1b71..4100e19d2137 100644
--- a/platform/core-api/src/com/intellij/util/InstanceofCheckerGenerator.java
+++ b/platform/core-api/src/com/intellij/util/InstanceofCheckerGenerator.java
@@ -15,14 +15,13 @@
*/
package com.intellij.util;
-import com.intellij.openapi.application.PathManager;
import com.intellij.openapi.util.Condition;
import com.intellij.util.containers.ConcurrentFactoryMap;
-import net.sf.cglib.asm.$ClassVisitor;
-import net.sf.cglib.asm.$Label;
-import net.sf.cglib.asm.$Type;
-import net.sf.cglib.core.*;
import org.jetbrains.annotations.NotNull;
+import org.jetbrains.org.objectweb.asm.ClassWriter;
+import org.jetbrains.org.objectweb.asm.MethodVisitor;
+import org.jetbrains.org.objectweb.asm.Opcodes;
+import org.jetbrains.org.objectweb.asm.Type;
import java.lang.reflect.Modifier;
@@ -33,13 +32,6 @@ public class InstanceofCheckerGenerator {
private static final InstanceofCheckerGenerator ourInstance;
static {
- try {
- ClassGenerator.class.getDeclaredMethod("generateClass", $ClassVisitor.class);
- }
- catch (NoSuchMethodException e) {
- throw new IllegalStateException("Incorrect cglib version in the classpath, source=" + PathManager.getJarPathForClass(ClassGenerator.class));
- }
-
try {
ourInstance = new InstanceofCheckerGenerator();
}
@@ -52,6 +44,7 @@ public class InstanceofCheckerGenerator {
return ourInstance;
}
+ @SuppressWarnings("MismatchedQueryAndUpdateOfCollection")
private final ConcurrentFactoryMap> myCache = new ConcurrentFactoryMap>() {
@Override
protected Condition