mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
[devkit] RetrievingServiceInspection: fix tests
IJ-CR-102194 GitOrigin-RevId: b34950f81f00f95e966da6f299e05c255a4785f1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5a8799ac08
commit
c27a5fdc2f
@@ -8,7 +8,6 @@ final class MyService {
|
||||
}
|
||||
|
||||
void foo() {
|
||||
System.out.println(42);
|
||||
MyService service = <weak_warning descr="Can be replaced with 'MyService.getInstance()' call">ApplicationManager.getApplication().getService<caret>(MyService.class)</weak_warning>;
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,6 @@ final class MyService {
|
||||
}
|
||||
|
||||
void foo() {
|
||||
System.out.println(42);
|
||||
MyService service = MyService.getInstance();
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,6 @@ final class MyService {
|
||||
}
|
||||
|
||||
void foo(Project project) {
|
||||
System.out.println(42);
|
||||
MyService service = <weak_warning descr="Can be replaced with 'MyService.getInstance()' call">project.getService<caret>(MyService.class)</weak_warning>;
|
||||
}
|
||||
}
|
||||
@@ -9,7 +9,6 @@ final class MyService {
|
||||
}
|
||||
|
||||
void foo(Project project) {
|
||||
System.out.println(42);
|
||||
MyService service = MyService.getInstance(project);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user