From 2820dbf1812a18bf90afeb07781e2ee085116813 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Wed, 10 Jun 2015 15:45:42 +0300 Subject: [PATCH] Removed workaround for exception in IDEA. --- .../kotlin/idea/inspections/UnusedSymbolInspection.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/idea/src/org/jetbrains/kotlin/idea/inspections/UnusedSymbolInspection.kt b/idea/src/org/jetbrains/kotlin/idea/inspections/UnusedSymbolInspection.kt index acb26d8429f..7b8e70f2251 100644 --- a/idea/src/org/jetbrains/kotlin/idea/inspections/UnusedSymbolInspection.kt +++ b/idea/src/org/jetbrains/kotlin/idea/inspections/UnusedSymbolInspection.kt @@ -61,11 +61,6 @@ public class UnusedSymbolInspection : AbstractKotlinInspection() { private val javaInspection = UnusedDeclarationInspection() public fun isEntryPoint(declaration: JetNamedDeclaration): Boolean { - // TODO Workaround for EA-64030 - IOE: PsiJavaParserFacadeImpl.createAnnotationFromText - // This should be fixed on IDEA side: ClsAnnotation should not throw exceptions when annotation class has Java keyword - if (declaration.getAnnotationEntries().any { it.getTypeReference().getText().endsWith("native") }) return false - if (ProjectStructureUtil.isJsKotlinModule(declaration.getContainingJetFile())) return false - val lightElement: PsiElement? = when (declaration) { is JetClassOrObject -> declaration.toLightClass() is JetNamedFunction, is JetSecondaryConstructor -> LightClassUtil.getLightClassMethod(declaration as JetFunction)