mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
allow only string and int literals to have provided references in java
This commit is contained in:
+4
-1
@@ -382,7 +382,10 @@ public class PsiLiteralExpressionImpl
|
||||
@Override
|
||||
@NotNull
|
||||
public PsiReference[] getReferences() {
|
||||
if (textMatches(PsiKeyword.NULL)) return PsiReference.EMPTY_ARRAY;
|
||||
IElementType type = getLiteralElementType();
|
||||
if (type != JavaTokenType.STRING_LITERAL && type != JavaTokenType.INTEGER_LITERAL) {
|
||||
return PsiReference.EMPTY_ARRAY; // there are references in int literals in SQL API parameters
|
||||
}
|
||||
return PsiReferenceService.getService().getContributedReferences(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user