mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
KTIJ-36178 GitOrigin-RevId: bd79b99c516106b65749df254539c4058b3f3055
21 lines
384 B
Kotlin
21 lines
384 B
Kotlin
import com.intellij.util.concurrency.annotations.RequiresEdt
|
|
import com.intellij.util.concurrency.ThreadingAssertions
|
|
|
|
class DifferentClassesMethods {
|
|
fun testMethod() {
|
|
Helper().helperMethod()
|
|
}
|
|
}
|
|
|
|
class Helper {
|
|
fun helperMethod() {
|
|
ThreadingAssertions.assertWriteAccess()
|
|
Service().serviceMethod()
|
|
}
|
|
}
|
|
|
|
class Service {
|
|
@RequiresEdt
|
|
fun serviceMethod() {}
|
|
}
|