View Javadoc
1   /*xml
2   <module name="Checker">
3     <module
4       name="com.puppycrawl.tools.checkstyle.internal.testmodules.VerifyPositionAfterLastTabFileSet" />
5   </module>
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checker;
9   
10  public class InputCheckerTabCharacter {
11    public int foo(int numOne, int numTwo) {
12  
13      // ok, has no tabs
14      int sum = numOne + numTwo;
15  
16      // has a tab after  ';'
17      numOne ++;	// violation 'violation'
18  
19      // violation 2 lines below 'violation'
20      // has 2 tabs after ';' and after 'comment'
21      numTwo ++;		// comment		violation
22  
23      return sum;
24    }
25  }