-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3161: Add note regarding conflict with other checks
- Loading branch information
Showing
1 changed file
with
5 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,6 +82,11 @@ | |
* <module name="EnumTrailingComma"/> | ||
* </pre> | ||
* | ||
* <p>Please note that using this check together with {@code NoWhitespaceBefore} or {@code SeparatorWrap} may create | ||
* conflicts with enums that contain a body: {@code EnumTrailingComma} enforces the semicolon on a separate line while | ||
* {@code NoWhiteSpaceBefore} does not allow the semicolon to be preceded with whitespace and {@code SeparatorWrap} | ||
* expects the semicolon to be on the same line as the last enum constant. | ||
* | ||
* @author <a href="[email protected]">Kariem Hussein</a> | ||
*/ | ||
public class EnumTrailingCommaAndSemicolonCheck extends AbstractCheck { | ||
|