Closed
Description
Raman Gupta opened SPR-14165 and commented
Spring MVC now supports defining fields with the JDK 8 Optional
type to indicate that the parameter is optional (cool!).
Kotlin has fields which can be marked as a nullable type e.g. String?
vs. String
. This information should be used by Spring MVC in the same way as Optional
.
See: KType documentation
Affects: 4.2.5
Issue Links:
- Support Kotlin nullable information for @Autowired and @Inject [SPR-14951] #19518 Support Kotlin nullable information for
@Autowired
and@Inject