Issue #2283: rename CheckUtils.isVoidMethod to isNonVoidMethod
This commit is contained in:
parent
a210010f0d
commit
e2b4e687d7
|
|
@ -494,7 +494,7 @@ public class JavadocMethodCheck extends AbstractTypeAwareCheck {
|
|||
|
||||
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 final class CheckUtils {
|
|||
* @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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue