mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-07 15:39:29 +00:00
Previously, KotlinDelegate.getReturnType() and getGenericReturnType() resolved the KFunction of every Kotlin method, which materializes the members of the declaring KClass and is costly at startup. Kotlin reflection is only needed to resolve the return type of suspending functions, so both methods now only use it when KotlinDetector.isSuspendingFunction() returns true. Closes gh-37300 Signed-off-by: Sébastien Deleuze <sdeleuze@users.noreply.github.com>