We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5cf1c0 commit 266b646Copy full SHA for 266b646
src/main/java/com/smlnskgmail/jaman/checkstyle/checks/MethodObjectReturnAnnotationCheck.java
@@ -28,6 +28,7 @@ public void visitToken(DetailAST ast) {
28
final DetailAST returnType = ast.findFirstToken(TokenTypes.TYPE);
29
if (!EXCLUDED_TYPES.contains(returnType.getFirstChild().getType())) {
30
// TODO: add annotations check
31
+ @SuppressWarnings("CPD-START")
32
final DetailAST modifiers = ast.findFirstToken(TokenTypes.MODIFIERS);
33
if (modifiers.getChildCount(TokenTypes.ANNOTATION) == 0) {
34
log(ast.getLineNo(), MESSAGE_KEY);
0 commit comments