Skip to content

Instantly share code, notes, and snippets.

@relax-more
Created June 10, 2015 11:36
Show Gist options
  • Save relax-more/5812a8eeab67a9308f18 to your computer and use it in GitHub Desktop.
Save relax-more/5812a8eeab67a9308f18 to your computer and use it in GitHub Desktop.
Java order of modifiers

ModifierOrder

Description

Checks that the order of modifiers conforms to the suggestions in the Java Language specification, sections 8.1.1, 8.3.1 and 8.4.3. The correct order is:

public protected private abstract static final transient volatile synchronized native strictfp

http://checkstyle.sourceforge.net/config_modifier.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment