Pattern: Wrong modifier order
Issue: -
Checks that the order of modifiers conforms to the suggestions in the Java Language specification, sections 8.1.1, 8.3.1, 8.4.3 and 9.4. The correct order is:
public
protected
private
abstract
default
static
final
transient
volatile
synchronized
native
strictfp
ATTENTION: We skip type annotations from validation.
To configure the check:
<module name="ModifierOrder"/>