Skip to content

Commit 85e6010

Browse files
committed
Match methodReference even without fineGrain
1 parent 3b7b05e commit 85e6010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/core/search/matching/DOMMethodLocator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public LocatorResponse match(MethodRef node, NodeSetWrapper nodeSet, MatchLocato
192192
}
193193
@Override
194194
public LocatorResponse match(MethodReference node, NodeSetWrapper nodeSet, MatchLocator locator) {
195-
if ((this.locator.pattern.fineGrain & IJavaSearchConstants.METHOD_REFERENCE_EXPRESSION) == 0) {
195+
if (this.locator.pattern.fineGrain != 0 && (this.locator.pattern.fineGrain & IJavaSearchConstants.METHOD_REFERENCE_EXPRESSION) == 0) {
196196
return toResponse(IMPOSSIBLE_MATCH);
197197
}
198198
SimpleName name = node instanceof TypeMethodReference typeMethodRef ? typeMethodRef.getName() :

0 commit comments

Comments
 (0)