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