]> source.dussan.org Git - aspectj.git/commitdiff
SignaturePattern.TypePatternVisitor: remove redundant visit method
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 12 Apr 2024 11:27:47 +0000 (13:27 +0200)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 12 Apr 2024 13:14:35 +0000 (15:14 +0200)
Method visit(WildAnnotationTypePattern, Object) used to descend into
node.getTypePattern().accept(this, data), which since commit 6585b9ef46
is unnecessary, because WildAnnotationTypePattern::traverse already
traverses its type pattern.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
org.aspectj.matcher/src/main/java/org/aspectj/weaver/patterns/SignaturePattern.java

index ccd5b7c2a83c46b3ab66145e959a651914594fd7..3e110383d3e0001a469aab0add58a6105b63d70d 100644 (file)
@@ -194,12 +194,6 @@ public class SignaturePattern extends PatternNode implements ISignaturePattern {
                        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?
                 */