From 0904f6a3547da0b2f1749e2080236e38c64e63d8 Mon Sep 17 00:00:00 2001 From: Michael Jacoby Date: Wed, 4 Oct 2023 15:44:22 +0200 Subject: [PATCH] adapt custom checkstyle checks to latest changes in checkstyle utility classes --- .../service/checks/ExtendedMissingJavadocMethodCheck.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checks/src/main/java/de/fraunhofer/iosb/ilt/faaast/service/checks/ExtendedMissingJavadocMethodCheck.java b/checks/src/main/java/de/fraunhofer/iosb/ilt/faaast/service/checks/ExtendedMissingJavadocMethodCheck.java index e11add9c5..d7de302b8 100644 --- a/checks/src/main/java/de/fraunhofer/iosb/ilt/faaast/service/checks/ExtendedMissingJavadocMethodCheck.java +++ b/checks/src/main/java/de/fraunhofer/iosb/ilt/faaast/service/checks/ExtendedMissingJavadocMethodCheck.java @@ -20,8 +20,8 @@ import com.puppycrawl.tools.checkstyle.api.Scope; import com.puppycrawl.tools.checkstyle.api.TextBlock; import com.puppycrawl.tools.checkstyle.api.TokenTypes; +import com.puppycrawl.tools.checkstyle.checks.javadoc.MissingJavadocMethodCheck; import com.puppycrawl.tools.checkstyle.utils.AnnotationUtil; -import com.puppycrawl.tools.checkstyle.utils.CheckUtil; import com.puppycrawl.tools.checkstyle.utils.ScopeUtil; import de.fraunhofer.iosb.ilt.faaast.service.checks.util.InterfaceHelper; import java.util.Set; @@ -167,7 +167,7 @@ private boolean isMissingJavadocAllowed(final DetailAST ast) { private boolean isSetterOrGetter(final DetailAST ast) { - return ((currentlyInClass() || currentlyInEnum()) && (CheckUtil.isSetterMethod(ast) || CheckUtil.isGetterMethod(ast))) + return ((currentlyInClass() || currentlyInEnum()) && (MissingJavadocMethodCheck.isSetterMethod(ast) || MissingJavadocMethodCheck.isGetterMethod(ast))) || (currentlyInInterface() && InterfaceHelper.isGetterOrGetterMethod(ast)); }