We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8006395 commit 07542d2Copy full SHA for 07542d2
src/main/java/org/openrewrite/java/migrate/search/FindInternalJavaxApis.java
@@ -59,7 +59,7 @@ public String getDescription() {
59
public TreeVisitor<?, ExecutionContext> getVisitor() {
60
Pattern javaxType = Pattern.compile(StringUtils.aspectjNameToPattern("javax..*"));
61
return Preconditions.check(new UsesType<>("javax..*", null),
62
- (methodPattern == null ? new MethodAccess.Matcher() : new MethodAccess.Matcher(methodPattern))
+ (StringUtils.isBlank(methodPattern) ? new MethodAccess.Matcher() : new MethodAccess.Matcher(methodPattern))
63
.asVisitor((ma, ctx) -> {
64
MethodCall call = ma.getTree();
65
JavaType.Method methodType = call.getMethodType();
0 commit comments