RFR: 8196065: ListChangeListener getRemoved() returns items that were not removed. [v10]
Marius Hanl
mhanl at openjdk.java.net
Sun Jun 27 12:48:04 UTC 2021
On Sun, 27 Jun 2021 12:09:24 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:
>> modules/javafx.controls/src/main/java/javafx/scene/control/ControlUtils.java line 109:
>>
>>> 107:
>>> 108: @Override public int getRemovedSize() {
>>> 109: checkState();
>>
>> Is this needed here? Just wondering because it was not there before.
>
> Without the check, it would be possible to inspect the size without calling `next()` first.
Right. But I want to understand why this was not there before.
Is this needed, because if you didn't called `next()`, there is no change yet to retrieve the removed size?
-------------
PR: https://git.openjdk.java.net/jfx/pull/478
More information about the openjfx-dev
mailing list