Skip to content

Revisit java.util.Optional declarations in reactive API signatures [SPR-15576] #20135

Closed
@spring-projects-issues

Description

@spring-projects-issues

Juergen Hoeller opened SPR-15576 and commented

Our reactive web utilities and in particular core WebFlux APIs tend to use java.util.Optional in their API declarations, in particular for optional return values. Optional usage is highly debatable in general but, as we learned now, in particular not really idiomatic in Kotlin.

Let's revisit this for 5.0 RC2, reducing Optional usage to actual stream-like API purposes.


Affects: 5.0 RC1

Issue Links:

Referenced from: commits 3f32f72, db69a08

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions