On Fri, 27 May 2022 23:31:42 GMT, Kevin Rushforth <[email protected]> wrote:
> I reviewed the public API changes, and this looks like a great addition to
> JavaFX bindings. I think there might be time to get this into JavaFX 19,
> presuming that there are no issues with the testing or implementation, so
> let's proceed down that path.
>
> I left one comment on the API docs as well as pointed out the public methods
> that will need an `@since 19` javadoc tag.
>
> Once that is updated you can propagate the javadoc changes to the CSR
> (including the `@since` tags) and move it to "Proposed". I'll formally review
> it later, once the code review is closer to being done.
Thanks, I've made the changes and updated the CSR with the latest docs. It's
now proposed.
> modules/javafx.base/src/main/java/javafx/beans/value/ObservableValue.java
> line 205:
>
>> 203: * resulting value is {@code null}. If the mapping resulted in
>> {@code null}, then the
>> 204: * resulting value is also {@code null}.
>> 205: * <p>
>
> It might be worth borrowing some language from `Optional::flatMap`. Maybe
> something like this?
>
>
> This method is similar to {@link #map(Function)}, but the mapping function is
> one whose result is already an ObservableValue, and if invoked, flatMap does
> not wrap it within an additional ObservableValue.
Added this and put code tags where necessary.
-------------
PR: https://git.openjdk.java.net/jfx/pull/675