On Wed, 26 Nov 2025 21:57:22 GMT, Kevin Rushforth <[email protected]> wrote:
>> Michael Strauß has updated the pull request incrementally with one
>> additional commit since the last revision:
>>
>> rename LINEAR() to ofLinear()
>
> 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.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1977#discussion_r2566634521