mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Mind recently added @NotNull contract for PsiReference#isReferenceTo()
This commit is contained in:
@@ -232,9 +232,11 @@ public final class PyClassRefactoringUtil {
|
||||
@Override
|
||||
public void visitPyStringLiteralExpression(PyStringLiteralExpression node) {
|
||||
super.visitPyStringLiteralExpression(node);
|
||||
for (PsiReference ref : node.getReferences()) {
|
||||
if (ref.isReferenceTo(oldElement)) {
|
||||
ref.bindToElement(newElement);
|
||||
if (oldElement != null) {
|
||||
for (PsiReference ref : node.getReferences()) {
|
||||
if (ref.isReferenceTo(oldElement)) {
|
||||
ref.bindToElement(newElement);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user