View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="MethodCount"/>
5     </module>
6   </module>
7   */
8   package com.puppycrawl.tools.checkstyle.checks.sizes.methodcount;
9   
10  // xdoc section -- start
11  class Example1 {
12  
13    public void outerMethod1(int i) {}
14    public void outerMethod2() {}
15    public void outerMethod3(String str) {}
16  
17    private void outerMethod4() {
18      Runnable r = (new Runnable() {
19        public void run() {} // NOT counted towards Example1
20      });
21    }
22  
23    private void outerMethod5(int i) {}
24    void outerMethod6(int i, int j) {}
25  
26    public static class InnerExample{
27      public void innerMethod1() {} // NOT counted towards Example1
28      public void innerMethod2() {} // NOT counted towards Example1
29    }
30  }
31  // xdoc section -- end