Cleanup in compiler modules

This commit is contained in:
Ilya Gorbunov
2015-12-26 12:49:22 +03:00
parent 911adfd04d
commit 80916d5ed7
132 changed files with 322 additions and 322 deletions
@@ -142,8 +142,8 @@ public class KotlinCodeBlockModificationListener(modificationTracker: PsiModific
}
private val BLOCK_DECLARATION_TYPES = arrayOf<Class<out KtDeclaration>>(
javaClass<KtProperty>(),
javaClass<KtNamedFunction>()
KtProperty::class.java,
KtNamedFunction::class.java
)
}
}
@@ -68,7 +68,7 @@ public class KtLightClassForFacade private constructor(
companion object {
public fun getInstance(project: Project): FacadeStubCache {
return ServiceManager.getService<FacadeStubCache>(project, javaClass<FacadeStubCache>())
return ServiceManager.getService<FacadeStubCache>(project, FacadeStubCache::class.java)
}
}
}
@@ -104,8 +104,8 @@ class FilteredJvmDiagnostics(val jvmDiagnostics: Diagnostics, val otherDiagnosti
conflicting.groupBy {
it.data().signature.name
}.forEach {
val diagnostics = it.getValue()
if (diagnostics.size() <= 1) {
val diagnostics = it.value
if (diagnostics.size <= 1) {
filtered.addAll(diagnostics)
}
else {