View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="ModifierOrder"/>
5     </module>
6   </module>
7   */
8   package com.puppycrawl.tools.checkstyle.checks.modifier.modifierorder;
9   
10  // xdoc section -- start
11  public class Example1 {
12    public static final int MAX_VALUE = 100;
13  
14    // violation below "'private' modifier out of order with the JLS suggestions"
15    final private String example = "Example";
16  
17    //violation below, 'annotation modifier does not precede non-annotation modifiers'
18    public @Deprecated class Example {}
19  }
20  // xdoc section -- end