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

Color, Point2D and Point3D's fields should be made final

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • jfx13
    • jfx13
    • javafx
    • None

    Description

      These classes are structured as immutable, but their fields (rgb, xyz) are not declared final. The risk is that these values will be modified internally by mistake. It's safest to make them final.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: