diff --git a/src/main/java/org/openrewrite/java/migrate/joda/JodaTimeVisitor.java b/src/main/java/org/openrewrite/java/migrate/joda/JodaTimeVisitor.java index 4bde103ce..b84b09d49 100644 --- a/src/main/java/org/openrewrite/java/migrate/joda/JodaTimeVisitor.java +++ b/src/main/java/org/openrewrite/java/migrate/joda/JodaTimeVisitor.java @@ -165,8 +165,8 @@ public Javadoc visitReference(Javadoc.Reference reference, ExecutionContext ctx) J.MethodInvocation m = (J.MethodInvocation) super.visitMethodInvocation(method, ctx); // internal method with Joda class as return type - if (!method.getMethodType().getDeclaringType().isAssignableFrom(JODA_CLASS_PATTERN) - && method.getType().isAssignableFrom(JODA_CLASS_PATTERN)) { + if (!method.getMethodType().getDeclaringType().isAssignableFrom(JODA_CLASS_PATTERN) && + method.getType().isAssignableFrom(JODA_CLASS_PATTERN)) { return migrateNonJodaMethod(method, m); }