Skip to content

Commit 07542d2

Browse files
committed
Polish
1 parent 8006395 commit 07542d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/openrewrite/java/migrate/search/FindInternalJavaxApis.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public String getDescription() {
5959
public TreeVisitor<?, ExecutionContext> getVisitor() {
6060
Pattern javaxType = Pattern.compile(StringUtils.aspectjNameToPattern("javax..*"));
6161
return Preconditions.check(new UsesType<>("javax..*", null),
62-
(methodPattern == null ? new MethodAccess.Matcher() : new MethodAccess.Matcher(methodPattern))
62+
(StringUtils.isBlank(methodPattern) ? new MethodAccess.Matcher() : new MethodAccess.Matcher(methodPattern))
6363
.asVisitor((ma, ctx) -> {
6464
MethodCall call = ma.getTree();
6565
JavaType.Method methodType = call.getMethodType();

0 commit comments

Comments
 (0)