View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="MissingDeprecated"/>
5     </module>
6   </module>
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.annotation.missingdeprecated;
10  
11  // xdoc section -- start
12  class Example1 {
13    @Deprecated
14    public static final int MY_CONST = 13; // ok
15  
16    /** This javadoc is missing deprecated tag. */
17    // violation below '@deprecated Javadoc tag with description.'
18    @Deprecated
19    public static final int COUNTER = 10;
20  
21    /**
22     * @deprecated
23     * <p></p>
24     */
25    @Deprecated
26      public static final int NUM = 123456; // ok
27  
28    /**
29     * @deprecated
30     *  <p>
31     */
32    @Deprecated
33    public static final int CONST = 12; // ok
34  }
35  // xdoc section -- end