-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)theme: kotlinAn issue related to Kotlin supportAn issue related to Kotlin supporttype: enhancementA general enhancementA general enhancement
Milestone
Description
inline fun <reified T> PropertyResolver.getProperty(key: String) : T?
should be refined to inline fun <reified T : Any> PropertyResolver.getProperty(key: String) : T?
as the return value is always nullable, so the nullability of the generic type is not useful in that use case. That change will also improve the consistency against other PropertyResolverExtensions.kt
extensions.
As a side effect, it workarounds https://youtrack.jetbrains.com/issue/KT-78555.
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)theme: kotlinAn issue related to Kotlin supportAn issue related to Kotlin supporttype: enhancementA general enhancementA general enhancement