There are 3 classes that hold width+height dimensions:
com.sun.javafx.geom.Dimension2D
com.sun.javafx.geom.Dimension
javafx.geometry.Dimension2D
Having both the inner classes is redundant so one can be removed. The other can be turned into a record. The public class needs to have its fields set to final and could serve to replace both the inner classes.
com.sun.javafx.geom.Dimension2D
com.sun.javafx.geom.Dimension
javafx.geometry.Dimension2D
Having both the inner classes is redundant so one can be removed. The other can be turned into a record. The public class needs to have its fields set to final and could serve to replace both the inner classes.
- links to
-
Review(master) openjdk/jfx/1653