Skip to content

Commit

Permalink
Fix failing parameterizedMatchWithBounds() test case
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Oct 15, 2024
1 parent e88596e commit ae60c48
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void parameterizedMatchWithBounds() {
@Override
public <N extends NameTree> N visitTypeName(N nameTree, ExecutionContext ctx) {
// the cursor points at the parent when `visitTypeName()` is called
if (template.matches(new Cursor(getCursor(), nameTree))) {
if (getCursor().getValue() != nameTree && template.matches(new Cursor(getCursor(), nameTree))) {
return SearchResult.found(nameTree);
}
return super.visitTypeName(nameTree, ctx);
Expand Down

0 comments on commit ae60c48

Please sign in to comment.