View Javadoc
1   package com.puppycrawl.tools.checkstyle.main;
2   
3   public class InputMainGenerateChecksAndFilesSuppressions {
4       private int low = 0; // violation
5       private int high = 0; // violation
6   
7       private int arr[] = null; // violation
8   
9       // violation below 'Throwing 'RuntimeException' is not allowed'
10      public void test1() throws RuntimeException {
11          // violation 3 lines below 'Nested for depth is 2 (max allowed 1).'
12          for (int i = low; i < 100; i++) {
13              for (int j = low; j < 100; j++) {
14                  for (int k = low; k < 100; k++) {
15  
16                  }
17              }
18          }
19      }
20  
21      public void test2(int val) throws Error { // violation 'Throwing 'Error' is not allowed'
22          high = val;
23      }
24  
25      public void test3() throws Throwable {} // violation 'Throwing 'Throwable' is not allowed'
26  
27      public void Test4() {} // violation 'Name 'Example4' must match pattern '^[a-z][a-zA-Z0-9]*$''
28  }