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 <[email protected]>
  • Loading branch information
kriegaex committed Apr 12, 2024
1 parent 8bc358f commit e9c21bd
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,12 +199,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 e9c21bd

Please sign in to comment.