summaryrefslogtreecommitdiff
path: root/python/src/com/jetbrains/python/psi/stubs/PyClassNameIndex.java
diff options
context:
space:
mode:
Diffstat (limited to 'python/src/com/jetbrains/python/psi/stubs/PyClassNameIndex.java')
-rw-r--r--python/src/com/jetbrains/python/psi/stubs/PyClassNameIndex.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/src/com/jetbrains/python/psi/stubs/PyClassNameIndex.java b/python/src/com/jetbrains/python/psi/stubs/PyClassNameIndex.java
index 814f450df8d2..14e1546c7e30 100644
--- a/python/src/com/jetbrains/python/psi/stubs/PyClassNameIndex.java
+++ b/python/src/com/jetbrains/python/psi/stubs/PyClassNameIndex.java
@@ -57,7 +57,7 @@ public class PyClassNameIndex extends StringStubIndexExtension<PyClass> {
int pos = qName.lastIndexOf(".");
String shortName = pos > 0 ? qName.substring(pos+1) : qName;
for (PyClass pyClass : find(shortName, project, scope)) {
- if (pyClass.getQualifiedName().equals(qName)) {
+ if (qName.equals(pyClass.getQualifiedName())) {
return pyClass;
}
}