From e0fd42981afd5393dd6c03ea22917d902c195a67 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Mon, 17 Nov 2025 15:24:44 +0100 Subject: [PATCH] Fix compilation warnings See gh-35711 --- ...anagedTypesBeanRegistrationAotProcessorTests.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/PersistenceManagedTypesBeanRegistrationAotProcessorTests.java b/spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/PersistenceManagedTypesBeanRegistrationAotProcessorTests.java index 238e87960c0..082bb68d2e0 100644 --- a/spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/PersistenceManagedTypesBeanRegistrationAotProcessorTests.java +++ b/spring-orm/src/test/java/org/springframework/orm/jpa/persistenceunit/PersistenceManagedTypesBeanRegistrationAotProcessorTests.java @@ -105,14 +105,10 @@ class PersistenceManagedTypesBeanRegistrationAotProcessorTests { .withMemberCategories(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)).accepts(hints); assertThat(RuntimeHintsPredicates.reflection().onType(EmployeeLocation.class) .withMemberCategories(MemberCategory.ACCESS_DECLARED_FIELDS)).accepts(hints); - assertThat(RuntimeHintsPredicates.reflection().onMethod(Car.class, "setId") - .invoke()).accepts(hints); - assertThat(RuntimeHintsPredicates.reflection().onMethod(Car.class, "getId") - .invoke()).accepts(hints); - assertThat(RuntimeHintsPredicates.reflection().onMethod(Car.class, "setModel") - .invoke()).accepts(hints); - assertThat(RuntimeHintsPredicates.reflection().onMethod(Car.class, "getModel") - .invoke()).accepts(hints); + assertThat(RuntimeHintsPredicates.reflection().onMethodInvocation(Car.class, "setId")).accepts(hints); + assertThat(RuntimeHintsPredicates.reflection().onMethodInvocation(Car.class, "getId")).accepts(hints); + assertThat(RuntimeHintsPredicates.reflection().onMethodInvocation(Car.class, "setModel")).accepts(hints); + assertThat(RuntimeHintsPredicates.reflection().onMethodInvocation(Car.class, "getModel")).accepts(hints); }); }