Skip to content

Commit

Permalink
Issue #464: Add note regarding conflict with other checks
Browse files Browse the repository at this point in the history
  • Loading branch information
kariem committed Aug 1, 2018
1 parent 674967e commit 5917f4f
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5917f4f

Please sign in to comment.