View Javadoc
1   /*
2   MissingDeprecated
3   violateExecutionOnNonTightHtml = (default)false
4   
5   
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checks.annotation.missingdeprecated;
9   
10  import java.lang.annotation.Inherited;
11  
12  @Deprecated
13  public class InputMissingDeprecatedBadJavadoc
14  {
15      /**
16       * @Deprecated this is not the same
17       */
18      @Deprecated // violation '.*@java.lang.Deprecated annotation and @deprecated.*description.'
19      protected InputMissingDeprecatedBadJavadoc() {
20  
21      }
22  
23      @Deprecated
24      @Override
25      public String toString() {
26          return "";
27      }
28  
29  
30      @Deprecated
31      enum Rock {
32  
33          /**
34           *
35           */
36          @Bleh2(bleh=1) // violation '.*@java.lang.Deprecated annotation.*@deprecated.*description.'
37          @Deprecated
38          Metallica
39      }
40  }
41  
42  /**
43   *
44   */
45  @Deprecated // violation '.*@java.lang.Deprecated annotation and @deprecated.*description.'
46  interface Foo2 {
47      @Deprecated
48      interface Bar {
49  
50      }
51  }
52  
53  /**
54   */
55  @Deprecated // violation '.*@java.lang.Deprecated annotation and @deprecated.*description.'
56  @interface Bleh2 {
57  
58      /**
59       *
60       * @return
61       */
62      @Deprecated // violation '.*@java.lang.Deprecated annotation and @deprecated.*description.'
63      int bleh();
64  }