View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.returncount;
2   
3   class InputReturnCountVoid {
4       public InputReturnCountVoid() {
5           return;
6       }
7   
8       public void method() {
9           if (true) {
10              return;
11          }
12      }
13  
14      public void method2() {
15          if (true) {
16              return;
17          }
18  
19          return;
20      }
21  
22      public int method3() {
23          if (true) {
24              return 0;
25          }
26  
27          return 0;
28      }
29  
30      public int method4() {
31          if (true) {
32              return 0;
33          }
34          if (false) {
35              return 0;
36          }
37  
38          return 0;
39      }
40  
41      void method5() {
42          if (true) {
43              return;
44          }
45  
46          return;
47      }
48  }