RFR: 8373038: Interpolator factories should follow method naming convention [v2]

Kevin Rushforth kcr at openjdk.org
Mon Dec 22 22:10:40 UTC 2025


On Thu, 4 Dec 2025 21:57:32 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

>> The following interpolator factories don't follow the standard method naming convention:
>> 
>> * `Interpolator.SPLINE(double, double, double, double)`
>> * `Interpolator.TANGENT(Duration, double, Duration, double)`
>> * `Interpolator.TANGENT(Duration, double)`
>> * `Interpolator.STEPS(int, StepPosition)`
>> 
>> New methods named `ofSpline`, `ofTangent`, and `ofSteps` are added. The existing methods are deprecated (not for removal) in favor of the correctly-named methods. This change is in line with the new `ofLinear` method added with #1977.
>
> Michael Strauß has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
> 
>  - doc changes
>  - Merge branch 'master' into fixes/interpolator-names
>  - Interpolator factories should follow method naming convention

Looks good. Go ahead and create the CSR and I'll review it.

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

Marked as reviewed by kcr (Lead).

PR Review: https://git.openjdk.org/jfx/pull/1996#pullrequestreview-3605905262


More information about the openjfx-dev mailing list