Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGunnar Wagenknecht2020-09-30 18:16:02 +0000
committerManoj Palat2020-11-02 08:44:55 +0000
commitb3cc25e26a9b327ef6e79fbec3cde4d4fbeb60fc (patch)
treea608c5732714b1f8c1d688f8d69ef568842f39d5
parent73ec3a17c80ec6797d8c27d9aeb34a624f52032d (diff)
downloadeclipse.jdt.core-b3cc25e26a9b327ef6e79fbec3cde4d4fbeb60fc.tar.gz
eclipse.jdt.core-b3cc25e26a9b327ef6e79fbec3cde4d4fbeb60fc.tar.xz
eclipse.jdt.core-b3cc25e26a9b327ef6e79fbec3cde4d4fbeb60fc.zip
Identity comparison is wrong in this case. These are handles which need to be checked with equality. Change-Id: Ie4cd5fee213047d550b15d36efeafe714dc17d3b
-rw-r--r--org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java
index 8c436b4a2f..95eaf0d41b 100644
--- a/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java
+++ b/org.eclipse.jdt.core/search/org/eclipse/jdt/internal/core/search/matching/MatchLocator.java
@@ -1215,7 +1215,7 @@ public void initialize(JavaProject project, int possibleMatchSize) throws JavaMo
projects.add(project);
if (this.pattern.focus != null) {
IJavaProject focusProject = this.pattern.focus.getJavaProject();
- if (focusProject != project) {
+ if (!project.equals(focusProject)) {
projects.add(focusProject);
}
}

Back to the top