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.
The current implementations can be replaced easily.
- relates to
-
JDK-8273981 Use an EnumSets instead of ordinal-based mask
-
- Open
-
-
JDK-8273983 Use EnumSets instead of an ordinal-based mask
-
- Closed
-