RFR: 8373038: Interpolator factories should follow method naming convention

Andy Goryachev angorya at openjdk.org
Wed Dec 3 20:24:34 UTC 2025


On Wed, 3 Dec 2025 17:08:24 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.

This change makes sense from purely esthetic reasons, though it probably won't be noticed by the app developers as they mostly deal with the interpolators via CSS (and there is no change there, as far as I can tell).

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

PR Comment: https://git.openjdk.org/jfx/pull/1996#issuecomment-3608686492


More information about the openjfx-dev mailing list