RFR: 8290310: ChangeListener events are incorrect or misleading when a nested change occurs [v2]

John Hendrikx jhendrikx at openjdk.org
Sun Apr 16 07:14:55 UTC 2023


On Sun, 16 Apr 2023 03:21:59 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

>> John Hendrikx has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Fix incorrect import
>>  - Fix review comments
>
> modules/javafx.base/src/main/java/com/sun/javafx/binding/ArrayManager.java line 58:
> 
>> 56:      * Constructs a new instance.
>> 57:      *
>> 58:      * @param accessor an {@link Accessor}, cannot be {@code null}
> 
> There is no `accessor` parameter.

Thanks for all the Javadoc checks; I've turned on some IDE warnings for these as it turns out they're harder to get right than I thought :)  I fixed a couple more as well.

> modules/javafx.base/src/main/java/com/sun/javafx/binding/ArrayManager.java line 374:
> 
>> 372:         while (needed > max) {
>> 373:             min = mid;
>> 374:             mid = max;
> 
> These two lines don't seem to be useful, as neither `min` nor `mid` are ever accessed after this point.

Well spotted, they indeed are not needed in the 2nd loop.

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1081#discussion_r1167744831
PR Review Comment: https://git.openjdk.org/jfx/pull/1081#discussion_r1167744922


More information about the openjfx-dev mailing list