View Javadoc
1   /*
2   MethodParamPad
3   allowLineBreaks = (default)false
4   option = SPACE
5   tokens = (default)CTOR_DEF, LITERAL_NEW, METHOD_CALL, METHOD_DEF, SUPER_CTOR_CALL, \
6            ENUM_CONSTANT_DEF, RECORD_DEF
7   
8   
9   */
10  
11  package com.puppycrawl.tools.checkstyle.checks.whitespace.methodparampad;
12  
13  @SuppressWarnings({"this", "that"})
14  public class InputMethodParamPadWhitespaceAround
15  {
16      protected InputMethodParamPadWhitespaceAround ( int i )
17      {
18          this (); // ok, whitespace between 'this' and ()
19          toString ();
20      }
21      protected InputMethodParamPadWhitespaceAround ()
22      {
23          super ();
24      }
25  
26      protected InputMethodParamPadWhitespaceAround ( String s)
27      {
28          // ok, until https://github.com/checkstyle/checkstyle/issues/13675
29          this();
30      }
31  
32      public void enhancedFor ()
33      {
34          int[] i = new int[2];
35          for ( int j: i ) {
36              System.identityHashCode ( j );
37          }
38      }
39  }
40  
41  @interface CronExpression {
42      // annotation type elements are not checked
43      Class<?>[] groups() default {};
44  }
45  
46  @interface CronExpression1 {
47      // annotation type elements are not checked
48      Class<?>[] groups() default { };
49  }