Skip to content

Commit

Permalink
#371 Add test cases for multi-line comments in MethodBodyComments check
Browse files Browse the repository at this point in the history
  • Loading branch information
mkordas committed Jan 15, 2016
1 parent fbca8eb commit 687c040
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,21 @@ public int invalidCommentInside() {
/* invalid comment */ final int second = 2;
return first + second;
}

public int invalidMultilineInside() {
/**
* invalid multiline comment
*/
}

void submit() {
new Runnable() {
@Override
public void run() {
/* run
*/
}
};
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
15:Comments in method body are prohibited
17:Comments in method body are prohibited
22:Comments in method body are prohibited
27:Comments in method body are prohibited
36:Comments in method body are prohibited

0 comments on commit 687c040

Please sign in to comment.