diff --git a/src/testWithSpringBoot_2_4/java/org/openrewrite/java/spring/boot2/search/EntityIdForRepositoryVisitorTest.java b/src/testWithSpringBoot_2_4/java/org/openrewrite/java/spring/boot2/search/EntityIdForRepositoryVisitorTest.java index e64df34cd..5d456f8bb 100644 --- a/src/testWithSpringBoot_2_4/java/org/openrewrite/java/spring/boot2/search/EntityIdForRepositoryVisitorTest.java +++ b/src/testWithSpringBoot_2_4/java/org/openrewrite/java/spring/boot2/search/EntityIdForRepositoryVisitorTest.java @@ -31,7 +31,7 @@ class EntityIdForRepositoryVisitorTest implements RewriteTest { @Override public void defaults(RecipeSpec spec) { - spec.recipe(toRecipe(EntityIdForRepositoryVisitor::new)) + spec.recipe(toRecipe(() -> new EntityIdForRepositoryVisitor<>())) .parser(JavaParser.fromJavaVersion().classpath("spring-beans", "spring-data")); }