CPD Results

The following document contains the results of PMD's CPD 3.7.

Duplications

FileLine
org/millscript/commons/xml/tokenizer/Xml11Tokenizer.java124
org/millscript/commons/xml/tokenizer/Xml10Tokenizer.java125
        || ( ch >= 0x20 && ch <= 0xD7FF )
        || ( ch >= 0xE000 && ch <= 0xFFFD )
        || ( ch >= 0x10000 && ch <= 0x10FFFF );
    }

    /**
     * @see org.millscript.commons.xml.tokenizer.AbstractXmlTokenizerImpl#isNameChar(char)
     */
    @Override
    public boolean isNameChar( final char ch ) {
        // FIXME - This needs to be XML 1.0 NOT XML 1.1
        return ( ch >= 'a' && ch <= 'z' ) || ch == ':' || ch == '_' || ch == '-' || ch == '.'
            || ( ch >= 'A' && ch <= 'Z' )
            || ( ch >= '0' && ch <= '9' ) || ch == 0xB7
            || ( ch >= 0xC0 && ch <= 0xD6 )
            || ( ch >= 0xD8 && ch <= 0xF6 )
            || ( ch >= 0xF8 && ch <= 0x2FF )
            || ( ch >= 0x300 && ch <= 0x37D )
            || ( ch >= 0x37F && ch <= 0x1FFF )
            || ( ch >= 0x200C && ch <= 0x200D )
            || ( ch >= 0x203F && ch <= 0x2040 )
            || ( ch >= 0x2070 && ch <= 0x218F )
            || ( ch >= 0x2C00 && ch <= 0x2FEF )
            || ( ch >= 0x3001 && ch <= 0xD7FF )
            || ( ch >= 0xF900 && ch <= 0xFDCF )
            || ( ch >= 0xFDF0 && ch <= 0xFFFD )
            || ( ch >= 0x10000 && ch <= 0xEFFFF );
    }

    /**
     * @see org.millscript.commons.xml.tokenizer.AbstractXmlTokenizerImpl#isNameStartChar(char)
     */
    @Override
    public boolean isNameStartChar( final char ch ) {
        // FIXME - This needs to be XML 1.0 NOT XML 1.1
        return ( ch >= 'a' && ch <= 'z' ) || ch == ':' || ch == '_'
            || ( ch >= 'A' && ch <= 'Z' )
            || ( ch >= 0xC0 && ch <= 0xD6 )
            || ( ch >= 0xD8 && ch <= 0xF6 )
            || ( ch >= 0xF8 && ch <= 0x2FF )
            || ( ch >= 0x370 && ch <= 0x37D )
            || ( ch >= 0x37F && ch <= 0x1FFF )
            || ( ch >= 0x200C && ch <= 0x200D )
            || ( ch >= 0x2070 && ch <= 0x218F )
            || ( ch >= 0x2C00 && ch <= 0x2FEF )
            || ( ch >= 0x3001 && ch <= 0xD7FF )
            || ( ch >= 0xF900 && ch <= 0xFDCF )
            || ( ch >= 0xFDF0 && ch <= 0xFFFD )
            || ( ch >= 0x10000 && ch <= 0xEFFFF );
    }

FileLine
org/millscript/commons/xml/tokenizer/wellformed/XmlDeclTokenVisitor.java74
org/millscript/commons/xml/tokenizer/wellformed/DTDTokenVisitor.java72
    }

    /**
     * @see org.millscript.commons.xml.api.token.TokenVisitor#visit(org.millscript.commons.xml.api.token.EmptyElementToken)
     */
    public void visit( final EmptyElementToken token ) {
        // not valid in this section, check it in the next one
        this.wellFormed.tokenVisitor = this.nextTokenVisitor;
        token.visit( this.nextTokenVisitor );
    }

    /**
     * @see org.millscript.commons.xml.api.token.TokenVisitor#visit(org.millscript.commons.xml.api.token.EndTagToken)
     */
    public void visit( final EndTagToken token ) {
        // not valid in this section, check it in the next one
        this.wellFormed.tokenVisitor = this.nextTokenVisitor;
        token.visit( this.nextTokenVisitor );
    }

    /**
     * @see org.millscript.commons.xml.api.token.TokenVisitor#visit(org.millscript.commons.xml.api.token.PIToken)
     */
    public void visit( final PIToken token ) {
        // not valid in this section, check it in the next one
        this.wellFormed.tokenVisitor = this.nextTokenVisitor;
        token.visit( this.nextTokenVisitor );
    }

    /**
     * @see org.millscript.commons.xml.api.token.TokenVisitor#visit(org.millscript.commons.xml.api.token.StartTagToken)
     */
    public void visit( final StartTagToken token ) {
        // not valid in this section, check it in the next one
        this.wellFormed.tokenVisitor = this.nextTokenVisitor;
        token.visit( this.nextTokenVisitor );
    }