1 /*xml 2 <module name="Checker"> 3 <module name="TreeWalker"> 4 <module name="CommentsIndentation"> 5 <property name="tokens" value="SINGLE_LINE_COMMENT"/> 6 </module> 7 </module> 8 </module> 9 */ 10 package com.puppycrawl.tools.checkstyle.checks.indentation.commentsindentation; 11 12 // xdoc section -- start 13 public class Example2 { 14 void testMethod() { 15 /* 16 * it is Ok 17 */ 18 boolean bool = true; 19 20 /* 21 * It is not okay 22 */ 23 double d = 3.14; 24 } 25 26 public void foo1() { 27 foo2(); 28 // it is OK 29 } 30 31 public void foo2() { 32 int i; 33 // It is not okay 34 } 35 // violation 2 lines above 'Comment has incorrect indentation level 8' 36 } 37 // xdoc section -- end