View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.regexp.regexpsinglelinejava;
2   
3   public class InputRegexpSinglelineJavaTrailingComment {
4       int i; // don't use trailing comments :)
5       // it fine to have comment w/o any statement
6       /* good c-style comment. */
7       int j; /* bad c-style comment. */
8       void method1() { /* some c-style multi-line
9                           comment*/
10          Runnable r = (new Runnable() {
11                  public void run() {
12                  }
13              }); /* we should allow this */
14      } // we should allow this
15      /*
16        Let's check multi-line comments.
17      */
18      /* c-style */ // cpp-style
19      /* c-style 1 */ /*c-style 2 */
20  
21      void method2(long ms /* we should ignore this */) {
22          /* comment before text */int z;
23          /* int y */int y/**/;
24      }
25  
26      /**
27       * comment with trailing space 
28       */
29      final static public String NAME="Some Name"; // NOI18N
30  }