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