From 9181655289694a9e5b93a0f3c4c08b0db84a2c34 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Wed, 17 Jan 2024 20:20:09 +0100 Subject: [PATCH] Fix compilation --- src/main/java/org/openrewrite/java/migrate/BeanDiscovery.java | 2 +- .../java/org/openrewrite/java/migrate/BeansXmlNamespace.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/openrewrite/java/migrate/BeanDiscovery.java b/src/main/java/org/openrewrite/java/migrate/BeanDiscovery.java index 8d2114e232..8bbefa643b 100644 --- a/src/main/java/org/openrewrite/java/migrate/BeanDiscovery.java +++ b/src/main/java/org/openrewrite/java/migrate/BeanDiscovery.java @@ -71,7 +71,7 @@ public Xml visitTag(Xml.Tag tag, ExecutionContext ctx) { // Update or apply bean-discovery-mode=all if (hasBeanDiscoveryMode) { - TreeVisitor changeTagVisitor = new ChangeTagAttribute("beans", "bean-discovery-mode", "all", null).getVisitor(); + TreeVisitor changeTagVisitor = new ChangeTagAttribute("beans", "bean-discovery-mode", "all", null, null).getVisitor(); t = (Xml.Tag) changeTagVisitor.visit(t, ctx, getCursor()); } else { t = addAttribute(t, "bean-discovery-mode", "all", ctx); diff --git a/src/main/java/org/openrewrite/java/migrate/BeansXmlNamespace.java b/src/main/java/org/openrewrite/java/migrate/BeansXmlNamespace.java index 3e408bc386..7aaa8b3257 100644 --- a/src/main/java/org/openrewrite/java/migrate/BeansXmlNamespace.java +++ b/src/main/java/org/openrewrite/java/migrate/BeansXmlNamespace.java @@ -58,9 +58,9 @@ public Xml visitTag(Xml.Tag tag, ExecutionContext ctx) { String xmlns = attributes.get("xmlns"); String schemaLocation = attributes.get("xsi:schemaLocation"); if (NS_SUN.equalsIgnoreCase(xmlns) && !SUN_SCHEMA_LOCATION.equalsIgnoreCase(schemaLocation)) { - doAfterVisit(new ChangeTagAttribute("beans", "xsi:schemaLocation", SUN_SCHEMA_LOCATION, null).getVisitor()); + doAfterVisit(new ChangeTagAttribute("beans", "xsi:schemaLocation", SUN_SCHEMA_LOCATION, null, null).getVisitor()); } else if (NS_JCP.equalsIgnoreCase(xmlns) && !JCP_SCHEMA_LOCATION.equalsIgnoreCase(schemaLocation)) { - doAfterVisit(new ChangeTagAttribute("beans", "xsi:schemaLocation", JCP_SCHEMA_LOCATION, null).getVisitor()); + doAfterVisit(new ChangeTagAttribute("beans", "xsi:schemaLocation", JCP_SCHEMA_LOCATION, null, null).getVisitor()); } } return t;