Permalink
Browse files

Issue #2283: rename CheckUtils.isVoidMethod to isNonVoidMethod

  • Loading branch information...
1 parent a210010 commit e2b4e687d7b8f9d6d5e1346d874b90e4567aff81 @romani romani committed Oct 6, 2015
@@ -494,7 +494,7 @@ private void checkComment(DetailAST ast, TextBlock comment) {
checkParamTags(tags, ast, !hasInheritDocTag);
checkThrowsTags(tags, getThrows(ast), !hasInheritDocTag);
- if (CheckUtils.isVoidMethod(ast)) {
+ if (CheckUtils.isNonVoidMethod(ast)) {
checkReturnTag(tags, ast.getLineNo(), !hasInheritDocTag);
}
}
@@ -400,7 +400,7 @@ public static boolean isGetterMethod(final DetailAST ast) {
* @param methodDefAst the method node.
* @return true if method is a void one.
*/
- public static boolean isVoidMethod(DetailAST methodDefAst) {
+ public static boolean isNonVoidMethod(DetailAST methodDefAst) {
boolean retVal = false;
if (methodDefAst.getType() == TokenTypes.METHOD_DEF) {
final DetailAST typeAST = methodDefAst.findFirstToken(TokenTypes.TYPE);

0 comments on commit e2b4e68

Please sign in to comment.