mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-23 15:49:31 +07:00
24 lines
482 B
Java
24 lines
482 B
Java
import com.intellij.util.concurrency.annotations.RequiresEdt;
|
|
import com.intellij.util.concurrency.ThreadingAssertions;
|
|
|
|
class DifferentClassesMethods {
|
|
void testMethod() {
|
|
Helper helper = new Helper();
|
|
helper.helperMethod();
|
|
}
|
|
|
|
class Helper {
|
|
void helperMethod() {
|
|
Service service = new Service();
|
|
service.serviceMethod();
|
|
ThreadingAssertions.assertWriteAccess();
|
|
}
|
|
}
|
|
|
|
class Service {
|
|
@RequiresEdt
|
|
void serviceMethod() {}
|
|
}
|
|
}
|
|
|