mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: isIdentifier() parameter is nullable
This commit is contained in:
+1
-1
@@ -761,7 +761,7 @@ public class JavaStructuralSearchProfile extends StructuralSearchProfile {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isIdentifier(PsiElement element) {
|
||||
public boolean isIdentifier(@Nullable PsiElement element) {
|
||||
return element instanceof PsiIdentifier;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -263,7 +263,7 @@ public abstract class StructuralSearchProfile {
|
||||
}
|
||||
|
||||
@Contract("null -> false")
|
||||
public boolean isIdentifier(PsiElement element) {
|
||||
public boolean isIdentifier(@Nullable PsiElement element) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ public class XmlStructuralSearchProfile extends StructuralSearchProfile {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isIdentifier(PsiElement element) {
|
||||
public boolean isIdentifier(@Nullable PsiElement element) {
|
||||
return element instanceof XmlToken && ((XmlToken)element).getTokenType() == XmlTokenType.XML_NAME;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ public class GroovyStructuralSearchProfile extends StructuralSearchProfileBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isIdentifier(PsiElement element) {
|
||||
public boolean isIdentifier(@Nullable PsiElement element) {
|
||||
return element instanceof PsiIdentifier;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user