News
The first reason I generally prefer == when comparing enums is a consequence of how the Java Language Specification describes enums. Section 8.9 (“Enums”) states: ...
Typesafe enums offer a better alternative to Java's traditional enumerated types. Here's how to use typesafe enums correctly in your Java code.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results