View Javadoc
1   /*
2   SingleSpaceSeparator
3   validateComments = (default)false
4   
5   
6   */
7   
8   package com.puppycrawl.tools.checkstyle.checks.whitespace.singlespaceseparator;
9   
10  public class InputSingleSpaceSeparatorComments2 {
11      /* always correct */ int i = 0;
12      int   /* wrong if X is enabled */     j = 0;
13      int k;   // Multiple whitespaces before comment
14  
15      /**
16       * Always correct
17       */
18      void foo() {
19          /* Always correct */
20          int  a = 0; // violation
21      }  // Wrong if X is enabled
22  }