On Wed, 26 Nov 2025 22:26:40 GMT, Michael Strauß <[email protected]> wrote:
>> modules/javafx.graphics/src/main/java/javafx/animation/Interpolator.java
>> line 107:
>>
>>> 105: * @param controlPoints the control points
>>> 106: * @throws NullPointerException if {@code controlPoints} is {@code
>>> null}
>>> 107: * @throws IllegalArgumentException if {@code controlPoints} is
>>> empty
>>
>> Should it throw IAE if length < 2?
>
> The CSS syntax is specified as `linear( [ <number> && <percentage>{0,2} ]#
> )`, where `#` means "one or more". So a single point is allowed.
I've noticed that the text in cssref.html says "two or more", not "one or
more". I'm going to change that.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1977#discussion_r2566645780