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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: openjfx13
    • Fix Version/s: openjfx13
    • Component/s: javafx
    • Labels:
      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

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

                Dates

                Created:
                Updated:
                Resolved: