Cleanup in compiler modules
This commit is contained in:
+2
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user