From 4b3322e1bdf853330789853f270fdd96a0fde34c Mon Sep 17 00:00:00 2001 From: Jonathan Schneider Date: Sun, 12 Sep 2021 14:19:28 -0700 Subject: [PATCH] Update to latest rewrite core --- .../quarkus/quarkus2/UsePanacheEntityBaseStaticMethods.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/openrewrite/java/quarkus/quarkus2/UsePanacheEntityBaseStaticMethods.java b/src/main/java/org/openrewrite/java/quarkus/quarkus2/UsePanacheEntityBaseStaticMethods.java index b742b61..7a73d3c 100644 --- a/src/main/java/org/openrewrite/java/quarkus/quarkus2/UsePanacheEntityBaseStaticMethods.java +++ b/src/main/java/org/openrewrite/java/quarkus/quarkus2/UsePanacheEntityBaseStaticMethods.java @@ -74,12 +74,12 @@ public J.MethodInvocation visitMethodInvocation(J.MethodInvocation method, Execu if (GET_ENTITY_MANAGER.matches(method)) { String selectType = getSelectTypeFQ(method); if (selectType != null) { - doAfterVisit(new ChangeMethodTargetToStatic("io.quarkus.hibernate.orm.panache.PanacheEntityBase getEntityManager()", selectType, null)); + doAfterVisit(new ChangeMethodTargetToStatic("io.quarkus.hibernate.orm.panache.PanacheEntityBase getEntityManager()", selectType, null, null)); } } else if (FLUSH.matches(method)) { String selectType = getSelectTypeFQ(method); if (selectType != null) { - doAfterVisit(new ChangeMethodTargetToStatic("io.quarkus.hibernate.orm.panache.PanacheEntityBase flush()", selectType, null)); + doAfterVisit(new ChangeMethodTargetToStatic("io.quarkus.hibernate.orm.panache.PanacheEntityBase flush()", selectType, null, null)); } }