ExplicitEnumOrdering
WARNING
FragileCode
Summary
Make sure
Ordering#explicit
lists all of an enum’s values
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("ExplicitEnumOrdering")
to the enclosing element.Disable this pattern completely by adding
-Xep:ExplicitEnumOrdering:OFF
as compiler argument. Learn more.