development/checkstyle/src/com/android/support/checkstyle/MismatchedAnnotationCheck.java
private boolean containsJavadocTag(final DetailAST ast) {
        final TextBlock javadoc = getFileContents().getJavadocBefore(ast.getLineNo());
        if (javadoc == null) {
            return false;
        }

        int currentLine = javadoc.getStartLineNo();
        boolean found = false;

        final String[] lines = javadoc.getText();
        for (String line : lines) {
            if (mMatchTag.matcher(line).find()) {
                if (found) {
                    log(currentLine, MSG_KEY_JAVADOC_DUPLICATE_TAG, mTag);
                }
                found = true;
            }
            currentLine++;
        }

        return found;
    }
/**
     * Checks to see if the text block contains the tag.
     *
     * @param ast the AST being visited
     * @return true if contains the tag
     */
Checks to see if the text block contains the tag.
@param ast the AST being visited
@return true if contains the tag
Checks to see if the text block contains the tag . @param ast the AST being visited @return true if contains the tag
private boolean containsJavadocTag(final DetailAST ast) {
        final TextBlock javadoc = getFileContents().getJavadocBefore(ast.getLineNo());
        if (javadoc == null) {
            return false;
        }
        int currentLine = javadoc.getStartLineNo();
        boolean found = false;
        final String[] lines = javadoc.getText();
        for (String line : lines) {
            if (mMatchTag.matcher(line).find()) {
                if (found) {
                    log(currentLine, MSG_KEY_JAVADOC_DUPLICATE_TAG, mTag);
                }
                found = true;
            }
            currentLine++;
        }
        return found;
    }
private boolean containsJavadocTag ( final DetailAST ast ) { final TextBlock javadoc = getFileContents ( ) . getJavadocBefore ( ast . getLineNo ( ) ) ; if ( javadoc == null ) { return false ; } int currentLine = javadoc . getStartLineNo ( ) ; boolean found = false ; final String [ ] lines = javadoc . getText ( ) ; for ( String line : lines ) { if ( mMatchTag . matcher ( line ) . find ( ) ) { if ( found ) { log ( currentLine , MSG_KEY_JAVADOC_DUPLICATE_TAG , mTag ) ; } found = true ; } currentLine ++ ; } return found ; }
Checks to see if the text block contains the tag.
Checks to see if the text block contains the tag .