mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-03 00:29:58 +07:00
IDEA-334607 GitOrigin-RevId: b3fcda025cba7de82939b985c0447f2e4f80f862
12 lines
557 B
Java
12 lines
557 B
Java
import com.intellij.openapi.components.Service;
|
|
import com.intellij.openapi.project.Project;
|
|
|
|
@<warning descr="Light service with a constructor that takes a parameter of type 'Project' must specify '@Service(Service.Level.PROJECT)'">Service<caret></warning>({Service.Level.APP})
|
|
final class MyService {
|
|
private final Project myProject;
|
|
|
|
public <warning descr="Application-level service requires a no-arg or single parameter constructor with 'kotlinx.coroutines.CoroutineScope' type">MyService</warning>(Project project) {
|
|
myProject = project;
|
|
}
|
|
}
|