forked from scalastyle/scalastyle
-
Notifications
You must be signed in to change notification settings - Fork 0
Scalastyle proposed rules (Modifiers)
matthewfarwell edited this page Oct 21, 2011
·
5 revisions
This page contains proposed rules for Scalastyle. These rules are from Checkstyle, and do not necessarily apply to Scalastyle.
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
Checks for redundant modifiers in:
- interface and annotation definitions,
- the final modifier on methods of final classes, and
- inner interface declarations that are declared as static