Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Done
-
1.9.0
Description
We introduce SerializableOptional to represent return value that of Optional and transported cross network.
The purpose is reasonable. However, a wart is inside SerializableOptional. Calling SerializableOptional#map will returns a Optional, which might surprise contributors if they want to chain operations and get a SerializableOptional as final result(to another transport maybe).
Semantically return value of SerializableOptional#map should be SerializableOptional, and for interoperation, we could introduce a SerializableOptional#toOptional which easily adapt to the correct type.
cc the original author till.rohrmann
Attachments
Attachments
Issue Links
- links to