Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8345261

Refactor the Dimension2D classes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • jfx25
    • jfx23
    • javafx
    • None

      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.

            nlisker Nir Lisker
            nlisker Nir Lisker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: