Skip to content

Commit e2b4e68

Browse files
committed
Issue #2283: rename CheckUtils.isVoidMethod to isNonVoidMethod
1 parent a210010 commit e2b4e68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocMethodCheck.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ private void checkComment(DetailAST ast, TextBlock comment) {
494494

495495
checkParamTags(tags, ast, !hasInheritDocTag);
496496
checkThrowsTags(tags, getThrows(ast), !hasInheritDocTag);
497-
if (CheckUtils.isVoidMethod(ast)) {
497+
if (CheckUtils.isNonVoidMethod(ast)) {
498498
checkReturnTag(tags, ast.getLineNo(), !hasInheritDocTag);
499499
}
500500
}

src/main/java/com/puppycrawl/tools/checkstyle/utils/CheckUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public static boolean isGetterMethod(final DetailAST ast) {
400400
* @param methodDefAst the method node.
401401
* @return true if method is a void one.
402402
*/
403-
public static boolean isVoidMethod(DetailAST methodDefAst) {
403+
public static boolean isNonVoidMethod(DetailAST methodDefAst) {
404404
boolean retVal = false;
405405
if (methodDefAst.getType() == TokenTypes.METHOD_DEF) {
406406
final DetailAST typeAST = methodDefAst.findFirstToken(TokenTypes.TYPE);

0 commit comments

Comments
 (0)