mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
18 lines
494 B
Kotlin
18 lines
494 B
Kotlin
import com.intellij.openapi.project.Project
|
|
import com.intellij.psi.PsiElement
|
|
import com.intellij.psi.PsiReference
|
|
|
|
class ProjectService(project: Project) {
|
|
val <warning descr="Potential memory leak: don't hold PsiElement, use SmartPsiElementPointer instead">pe</warning>: PsiElement?
|
|
val <warning descr="Do not use PsiReference as a field in extension">r</warning>: PsiReference?
|
|
var p: Project?
|
|
val pf: Project?
|
|
|
|
init {
|
|
pe = null
|
|
r = null
|
|
pf = project
|
|
p = pf
|
|
}
|
|
}
|