Skip to content

Commit

Permalink
Match on overrides of loggers
Browse files Browse the repository at this point in the history
  • Loading branch information
jkschneider committed Feb 16, 2023
1 parent 7e30bf2 commit 84bb6f7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ public Set<String> getTags() {

@Override
protected TreeVisitor<?, ExecutionContext> getSingleSourceApplicableTest() {
return new UsesMethod<>(methodPattern);
return new UsesMethod<>(methodPattern, true);
}

@Override
public JavaVisitor<ExecutionContext> getVisitor() {
return new JavaIsoVisitor<ExecutionContext>() {
private final MethodMatcher matcher = new MethodMatcher(methodPattern);
private final MethodMatcher matcher = new MethodMatcher(methodPattern, true);
private final RemoveToStringVisitor removeToStringVisitor = new RemoveToStringVisitor();

@Override
Expand Down

0 comments on commit 84bb6f7

Please sign in to comment.