Skip to content

Commit

Permalink
adapt custom checkstyle checks to latest changes in checkstyle utilit…
Browse files Browse the repository at this point in the history
…y classes
  • Loading branch information
mjacoby committed Oct 4, 2023
1 parent 067d4cd commit 0904f6a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
}

Expand Down

0 comments on commit 0904f6a

Please sign in to comment.