[devkit] RetrievingServiceInspection: fix tests

IJ-CR-102194

GitOrigin-RevId: b34950f81f00f95e966da6f299e05c255a4785f1
This commit is contained in:
Andrey Cherkasov
2023-04-11 16:09:15 +04:00
committed by intellij-monorepo-bot
parent 5a8799ac08
commit c27a5fdc2f
5 changed files with 3 additions and 6 deletions

View File

@@ -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>;
}
}

View File

@@ -8,7 +8,6 @@ final class MyService {
}
void foo() {
System.out.println(42);
MyService service = MyService.getInstance();
}
}

View File

@@ -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>;
}
}

View File

@@ -9,7 +9,6 @@ final class MyService {
}
void foo(Project project) {
System.out.println(42);
MyService service = MyService.getInstance(project);
}
}