Cleanup in idea plugin modules, misc
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ public abstract class KotlinLightCodeInsightFixtureTestCase : LightCodeInsightFi
|
||||
kotlinInternalModeOriginalValue = KotlinInternalMode.enabled
|
||||
KotlinInternalMode.enabled = true
|
||||
|
||||
getProject().getComponent(javaClass<EditorTracker>())?.projectOpened()
|
||||
getProject().getComponent(EditorTracker::class.java)?.projectOpened()
|
||||
|
||||
invalidateLibraryCache(project)
|
||||
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ public abstract class KotlinMultiFileTestCase : MultiFileTestCase() {
|
||||
val offset = text.indexOf("<caret>")
|
||||
|
||||
if (offset >= 0) {
|
||||
text.delete(offset, offset + "<caret>".length())
|
||||
text.delete(offset, offset + "<caret>".length)
|
||||
doc.setText(text.toString())
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ public fun unInvalidateBuiltinsAndStdLib(project: Project, runnable: RunnableWit
|
||||
|
||||
// Base tearDown() invalidates builtins and std-lib files. Restore them with brute force.
|
||||
fun unInvalidateFile(file: PsiFileImpl) {
|
||||
val field = javaClass<PsiFileImpl>().getDeclaredField("myInvalidated")!!
|
||||
val field = PsiFileImpl::class.java.getDeclaredField("myInvalidated")!!
|
||||
field.setAccessible(true)
|
||||
field.set(file, false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user