Skip to content

Commit

Permalink
Issue sevntu-checkstyle#464: Make getLastComma static
Browse files Browse the repository at this point in the history
  • Loading branch information
kariem committed Oct 8, 2018
1 parent 5681b03 commit e06d5c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ else if (nextAstType == TokenTypes.ENUM_CONSTANT_DEF) {
* @param start the first sibling
* @return the AST containing the last comma
*/
private DetailAST getLastComma(DetailAST start) {
private static DetailAST getLastComma(DetailAST start) {
DetailAST comma = null;
for (DetailAST ast = start; ast != null; ast = ast.getNextSibling()) {
if (ast.getType() == TokenTypes.COMMA) {
Expand Down

0 comments on commit e06d5c8

Please sign in to comment.