1
2
3
4
5
6
7
8 package com.puppycrawl.tools.checkstyle.checks.sizes.methodcount;
9
10
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() {}
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() {}
28 public void innerMethod2() {}
29 }
30 }
31