diff options
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/methodlength/InputMethodLengthComments.java')
-rw-r--r-- | src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/methodlength/InputMethodLengthComments.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/methodlength/InputMethodLengthComments.java b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/methodlength/InputMethodLengthComments.java new file mode 100644 index 000000000..8fbcc0e1d --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/checks/sizes/methodlength/InputMethodLengthComments.java @@ -0,0 +1,27 @@ +package com.puppycrawl.tools.checkstyle.checks.sizes.methodlength; + +import com.puppycrawl.tools.checkstyle.api.DetailAST; +import com.puppycrawl.tools.checkstyle.api.TokenTypes; + +public class InputMethodLengthComments { + public void visitToken(DetailAST ast) { + + final DetailAST openingBrace = ast.findFirstToken(TokenTypes.SLIST); + + if (openingBrace != null) { + final DetailAST closingBrace = + openingBrace.findFirstToken(TokenTypes.RCURLY); + } + + } + + public DetailAST visit(DetailAST ast) { + final DetailAST openingBrace = ast.findFirstToken(TokenTypes.SLIST); + DetailAST closingBrace = null; + + if (openingBrace != null) { + closingBrace = openingBrace.findFirstToken(TokenTypes.RCURLY); + } + return closingBrace; + } +} |