Files
2023-08-22 10:52:55 +00:00

10 lines
439 B
Java

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