[devkit] IDEA-298703 filter out explict constructor calls

GitOrigin-RevId: d6013518960b878dd13fe6d959e08f3460c2e818
This commit is contained in:
Elena Lyulina
2023-03-31 09:56:34 +02:00
committed by intellij-monorepo-bot
parent 442a7f11a2
commit 271c7f2045
5 changed files with 34 additions and 4 deletions

View File

@@ -0,0 +1,10 @@
import serviceDeclarations.RegisteredApplicationService;
class MyClass {
// explicit constructor call
static final RegisteredApplicationService myAppService1 = new RegisteredApplicationService();
// constructor call in a chain
static final <warning descr="Application service must not be assigned to a static final field">RegisteredApplicationService</warning> myAppService2 = new RegisteredApplicationService().getInstance();
}