Revert "extend test for code cleanup with changing visibility from private to internal for declarations, which are used outside of their file."
This reverts commit 9fd968d59e.
This commit is contained in:
@@ -16,10 +16,6 @@ fun foo() {
|
||||
|
||||
oldFun2()
|
||||
|
||||
ff()
|
||||
val xx = valX
|
||||
varX = 50
|
||||
varY = 60
|
||||
1.identityEquals(2)
|
||||
}
|
||||
|
||||
|
||||
@@ -15,10 +15,6 @@ fun foo() {
|
||||
|
||||
oldFun2()
|
||||
|
||||
ff()
|
||||
val xx = valX
|
||||
varX = 50
|
||||
varY = 60
|
||||
1 === 2
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
private fun ff() {}
|
||||
|
||||
private val valX = 10
|
||||
|
||||
private var varX = 20
|
||||
|
||||
var varY = 30
|
||||
private set(value: Int) {}
|
||||
@@ -1,8 +0,0 @@
|
||||
internal fun ff() {}
|
||||
|
||||
internal val valX = 10
|
||||
|
||||
internal var varX = 20
|
||||
|
||||
var varY = 30
|
||||
internal set(value: Int) {}
|
||||
@@ -43,10 +43,9 @@ class KotlinCleanupInspectionTest(): JetLightCodeInsightFixtureTestCase() {
|
||||
globalContext.codeCleanup(project, analysisScope, profile, "Cleanup", null, true)
|
||||
|
||||
myFixture.checkResultByFile(result)
|
||||
myFixture.checkResultByFile("topLevels.kt", "topLevels.kt.after", true)
|
||||
}
|
||||
|
||||
public fun testCleanup() {
|
||||
doTest("cleanup.kt.after", "cleanup.kt", "topLevels.kt","JavaAnn.java", "deprecatedSymbols.kt")
|
||||
doTest("cleanup.kt.after", "cleanup.kt", "JavaAnn.java", "deprecatedSymbols.kt")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user