Move off deprecated API in AOT support.

Closes #3305
Original pull request: #3307
This commit is contained in:
Christoph Strobl
2025-06-04 11:38:55 +02:00
committed by Mark Paluch
parent 033eba88e6
commit cc344a1dd2
2 changed files with 2 additions and 3 deletions

View File

@@ -282,8 +282,7 @@ public class RepositoryRegistrationAotContribution implements BeanRegistrationAo
// Kotlin
if (isKotlinCoroutineRepository(repositoryContext, repositoryInformation)) {
contribution.getRuntimeHints().reflection().registerTypes(kotlinRepositoryReflectionTypeReferences(),
hint -> hint.withMembers(MemberCategory.INTROSPECT_PUBLIC_METHODS));
contribution.getRuntimeHints().reflection().registerTypes(kotlinRepositoryReflectionTypeReferences(), hint -> {});
}
// Repository query methods

View File

@@ -62,7 +62,7 @@ public class TypeContributor {
if (type.isAnnotation() && filter.test((Class<? extends Annotation>) type)) {
contribution.getRuntimeHints().reflection().registerType(type,
hint -> hint.withMembers(MemberCategory.INTROSPECT_PUBLIC_METHODS));
hint -> {});
return;
}