From 1ddc755a371870be5597e317440b049a5443978a Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Tue, 5 Nov 2024 13:14:19 +0100 Subject: [PATCH] Fix compilation issue with direct use of UsesType Following https://github.com/openrewrite/rewrite/commit/47974dadde7b68be257c95a3933d55e2c97f3c39 --- .../java/org/openrewrite/java/migrate/javax/AddJaxbRuntime.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openrewrite/java/migrate/javax/AddJaxbRuntime.java b/src/main/java/org/openrewrite/java/migrate/javax/AddJaxbRuntime.java index 09fcb6556d..1ef39fff2b 100644 --- a/src/main/java/org/openrewrite/java/migrate/javax/AddJaxbRuntime.java +++ b/src/main/java/org/openrewrite/java/migrate/javax/AddJaxbRuntime.java @@ -97,7 +97,7 @@ public TreeVisitor getScanner(AtomicBoolean acc) { if (acc.get()) { return (J) tree; } - J t = new UsesType("javax.xml.bind..*", true).visit(tree, ctx); + Tree t = new UsesType("javax.xml.bind..*", true).visit(tree, ctx); if (t != tree) { acc.set(true); }