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