Files
codeql/java/ql/test/library-tests/comments/Test.java
2018-08-30 10:48:05 +01:00

23 lines
527 B
Java

/**
* A JavaDoc comment
* with multiple lines.
*/
class Test {
/** A JavaDoc comment with a single line. */
void m() {
// a single-line comment
// another single-line comment
}
/* A block comment
* with multiple lines.
*/
/* A block comment with a single line. */
// an end-of-line comment with a spurious trailing comment marker */
// an end-of-line comment with trailing whitespace
//an end-of-line comment without a leading space
void test() {} // an end-of-line comment with preceding code
}