Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
sambsnyd committed Sep 19, 2024
1 parent 8006395 commit 07542d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public String getDescription() {
public TreeVisitor<?, ExecutionContext> getVisitor() {
Pattern javaxType = Pattern.compile(StringUtils.aspectjNameToPattern("javax..*"));
return Preconditions.check(new UsesType<>("javax..*", null),
(methodPattern == null ? new MethodAccess.Matcher() : new MethodAccess.Matcher(methodPattern))
(StringUtils.isBlank(methodPattern) ? new MethodAccess.Matcher() : new MethodAccess.Matcher(methodPattern))
.asVisitor((ma, ctx) -> {
MethodCall call = ma.getTree();
JavaType.Method methodType = call.getMethodType();
Expand Down

0 comments on commit 07542d2

Please sign in to comment.