com.puppycrawl.tools.checkstyle.checks.coding
public class ArrayTrailingCommaCheck extends Check
Checks if array initialization contains optional trailing comma.
Rationale: Putting this comma in make is easier to change the order of the elements or add new elements on the end.
An example of how to configure the check is:
<module name="ArrayTrailingComma"/>
| Method Summary | |
|---|---|
| int[] | getDefaultTokens() |
| void | visitToken(DetailAST aArrayInit) |