1
2
3
4
5
6
7
8
9
10 package com.puppycrawl.tools.checkstyle.checks.sizes.methodcount;
11
12
13 class Example2 {
14
15 public void outerMethod1(int i) {}
16 public void outerMethod2() {}
17 public void outerMethod3(String str) {}
18
19 private void outerMethod4() {
20 Runnable r = (new Runnable() {
21 public void run() {}
22 });
23 }
24
25 private void outerMethod5(int i) {}
26 void outerMethod6(int i, int j) {}
27
28 public static class InnerExample{
29 public void innerMethod1() {}
30 public void innerMethod2() {}
31 }
32 }
33