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

Use an EnumSet for DirtyBits instead of an ordinal-based mask

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: openjfx13
    • Fix Version/s: openjfx14
    • Component/s: javafx
    • Labels:

      Description

      Node and Scene use a long to keep track of the dirty bits and bitwise operations to manipulate it. The JDK provides the EnumSet class for cases like this, which is safer, more readable, and just as performant. (See item 36 in Effective Java 3rd ed.)

      The current implementations can be replaced easily.

        Attachments

          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: