From 07542d22eb7bc8b28bcf2f9343e7b51fecef4987 Mon Sep 17 00:00:00 2001 From: Sam Snyder Date: Thu, 19 Sep 2024 12:48:17 -0700 Subject: [PATCH] Polish --- .../openrewrite/java/migrate/search/FindInternalJavaxApis.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openrewrite/java/migrate/search/FindInternalJavaxApis.java b/src/main/java/org/openrewrite/java/migrate/search/FindInternalJavaxApis.java index 3664d465d3..776b750ce1 100644 --- a/src/main/java/org/openrewrite/java/migrate/search/FindInternalJavaxApis.java +++ b/src/main/java/org/openrewrite/java/migrate/search/FindInternalJavaxApis.java @@ -59,7 +59,7 @@ public String getDescription() { public TreeVisitor 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();