View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="ExecutableStatementCount"/>
5     </module>
6   </module>
7   */
8   package com.puppycrawl.tools.checkstyle.checks.sizes.executablestatementcount;
9   
10  // xdoc section -- start
11  class Example1 {
12  
13    Example1() {
14      int a=10;
15      int b=20;
16      int sub=b-a;
17    }
18    void testMethod1() {
19      int a = 10;
20      int b = 20;
21      int sum = a + b;
22    }
23  }
24  // xdoc section -- end