RFR: 8345261: Refactor the Dimension2D classes

Nir Lisker nlisker at openjdk.org
Sat Nov 30 12:05:44 UTC 2024


On Fri, 29 Nov 2024 17:00:42 GMT, Nir Lisker <nlisker at openjdk.org> wrote:

> A small refactoring of the Dimension classes.
> 
> * `com.sun.javafx.geom.Dimension` was removed and its uses were replaced by `com.sun.javafx.geom.Dimension2D`.
> * `com.sun.javafx.geom.Dimension2D` became a record.
> * `javafx.geometry.Dimension2D`: fields became `final`.
> 
> I'm not sure we need the implementation class at all considering we are free to use the public one.

Thanks John. Because it's the weekend I'll wait until Monday evening with this.

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

PR Comment: https://git.openjdk.org/jfx/pull/1653#issuecomment-2508938693


More information about the openjfx-dev mailing list