View Javadoc
1   /*
2   ParenPad
3   option = space
4   tokens = (default)ANNOTATION, ANNOTATION_FIELD_DEF, CTOR_CALL, CTOR_DEF, DOT, \
5            ENUM_CONSTANT_DEF, EXPR, LITERAL_CATCH, LITERAL_DO, LITERAL_FOR, LITERAL_IF, \
6            LITERAL_NEW, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_WHILE, METHOD_CALL, \
7            METHOD_DEF, QUESTION, RESOURCE_SPECIFICATION, SUPER_CTOR_CALL, LAMBDA, RECORD_DEF
8   
9   
10  */
11  
12  package com.puppycrawl.tools.checkstyle.checks.whitespace.parenpad;
13  
14  public class InputParenPadWithSpace // ok
15  {
16      protected InputParenPadWithSpace ( int i )
17      {
18          this ();
19          toString ();
20      }
21      protected InputParenPadWithSpace ()
22      {
23          super ();
24      }
25  
26      public void enhancedFor ()
27      {
28          int[] i = new int[2];
29          for ( int j: i ) {
30              System.identityHashCode ( j );
31          }
32      }
33  }