mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-30 08:41:59 +07:00
GitOrigin-RevId: 5e74319e790c4246b64e6d5f57c51c6930dbf19f
10 lines
439 B
Java
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();
|
|
|
|
} |