On Sun, 27 Jun 2021 12:09:24 GMT, Michael Strauß <[email protected]> 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