Skip to content

Avoid the need to specify Supplier in Kotlin bean registration API [SPR-15118] #19685

@spring-projects-issues

Description

@spring-projects-issues

Sébastien Deleuze opened SPR-15118 and commented

Based on an idea from Mario Arias, we can avoid requiring specifying explicitly Supplier lambda type in Kotlin API by declaring the supplier parameter as crossinline supplier: () -> T instead of supplier: Supplier<T>.


Affects: 5.0 M4

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions