mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
prefer local variables over NULL_PSI_ELEMENT in smart completion
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
class Usage {
|
||||
void foo(PsiMethod method) {
|
||||
PsiUtil.ensureValid(<caret>);
|
||||
}
|
||||
}
|
||||
|
||||
class PsiUtil {
|
||||
static final PsiElement NULL_PSI_ELEMENT;
|
||||
|
||||
static void ensureValid(PsiElement e) {}
|
||||
}
|
||||
|
||||
interface PsiElement {}
|
||||
interface PsiMethod extends PsiElement {}
|
||||
Reference in New Issue
Block a user