mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
- works for callables only - replace in the whole project is not yet implemented - disabled tests: -- tests on classes/objects placed in wrong directories -- tests on replace in the whole project -- optimized imports -- reported problems with inline refactoring -- 3 tests with broken type arguments while inline itself works ok KTIJ-29498 GitOrigin-RevId: 046264742291bd6b1525d8df16535a14351879ee
24 lines
647 B
Plaintext
24 lines
647 B
Plaintext
// "Replace with 'stopKoin()'" "true"
|
|
// WITH_STDLIB
|
|
|
|
package com.example.pkg
|
|
|
|
import com.example.pkg.StandAloneContext.closeKoin
|
|
import com.example.pkg.StandAloneContext.stopKoin
|
|
|
|
object StandAloneContext {
|
|
@Deprecated(
|
|
"Renamed, use stopKoin() instead.",
|
|
ReplaceWith("stopKoin()", "com.example.pkg.StandAloneContext.stopKoin")
|
|
)
|
|
fun closeKoin() = stopKoin()
|
|
|
|
fun stopKoin() {}
|
|
}
|
|
|
|
|
|
fun koin() {
|
|
stopKoin()
|
|
}
|
|
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.replaceWith.DeprecatedSymbolUsageFix
|
|
// FUS_K2_QUICKFIX_NAME: org.jetbrains.kotlin.idea.k2.codeinsight.fixes.replaceWith.DeprecatedSymbolUsageFix |