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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx14
    • jfx13
    • javafx

      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.

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

              Created:
              Updated:
              Resolved: