Skip to content

Commit

Permalink
SignaturePattern.TypePatternVisitor: remove redundant visit method
Browse files Browse the repository at this point in the history
Method visit(WildAnnotationTypePattern, Object) used to descend into
node.getTypePattern().accept(this, data), which since commit 6585b9e
is unnecessary, because WildAnnotationTypePattern::traverse already
traverses its type pattern.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
  • Loading branch information
kriegaex committed Apr 12, 2024
1 parent 0344282 commit 742d4d7
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,12 +194,6 @@ public TypePatternVisitor(IScope scope, boolean targetsOtherThanTypeAllowed, boo
this.parameterTargettingAnnotationsAllowed = parameterTargettingAnnotationsAllowed;
}

@Override
public Object visit(WildAnnotationTypePattern node, Object data) {
node.getTypePattern().accept(this, data);
return node;
}

/**
* Do the ExactAnnotationTypePatterns have the incorrect target?
*/
Expand Down

0 comments on commit 742d4d7

Please sign in to comment.