From e06d5c8029a93c71f12fc0ff366a92eb683c7de2 Mon Sep 17 00:00:00 2001 From: Kariem Hussein Date: Mon, 8 Oct 2018 07:33:17 +0200 Subject: [PATCH] Issue #464: Make getLastComma static --- .../sevntu/checkstyle/checks/coding/EnumTrailingCommaCheck.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sevntu-checks/src/main/java/com/github/sevntu/checkstyle/checks/coding/EnumTrailingCommaCheck.java b/sevntu-checks/src/main/java/com/github/sevntu/checkstyle/checks/coding/EnumTrailingCommaCheck.java index 2e80707cb..734f09b52 100644 --- a/sevntu-checks/src/main/java/com/github/sevntu/checkstyle/checks/coding/EnumTrailingCommaCheck.java +++ b/sevntu-checks/src/main/java/com/github/sevntu/checkstyle/checks/coding/EnumTrailingCommaCheck.java @@ -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) {