CPD Results

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

Duplications

FileLine
org/deegree/featureinfo/templating/Templating2Lexer.java15
org/deegree/featureinfo/templating/Templating2Parser.java20
    public static final int EOF=-1;
    public static final int BracketLeft=4;
    public static final int BracketRight=5;
    public static final int Colon=6;
    public static final int Comma=7;
    public static final int Digit=8;
    public static final int Equals=9;
    public static final int EvenStart=10;
    public static final int ExplicitTemplateEnd=11;
    public static final int FeatureCallStart=12;
    public static final int GmlId=13;
    public static final int ID=14;
    public static final int Index=15;
    public static final int Kvp=16;
    public static final int Letter=17;
    public static final int LinkStart=18;
    public static final int MapDefinitionStart=19;
    public static final int MapSpace=20;
    public static final int NameStart=21;
    public static final int Not=22;
    public static final int OddStart=23;
    public static final int Point=24;
    public static final int PropertyCallStart=25;
    public static final int Rest=26;
    public static final int Slash=27;
    public static final int Star=28;
    public static final int TagClose=29;
    public static final int TagOpen=30;
    public static final int TemplateDefinitionStart=31;
    public static final int Url=32;
    public static final int ValueStart=33;
    public static final int WS=34;

    // delegates
    // delegators
    public Lexer[] getDelegates() {
FileLine
org/deegree/featureinfo/templating/Templating2Lexer.java1470
org/deegree/featureinfo/templating/Templating2Lexer.java1494
            int LA8_13 = input.LA(2);

            if ( (((synpred13_Templating2Lexer()&&synpred13_Templating2Lexer())&&(( Character.isLetter( input.LA(1) ) )||( Character.isDigit( input.LA(1) ) )))) ) {
                alt8=13;
            }
            else if ( (synpred24_Templating2Lexer()) ) {
                alt8=24;
            }
            else if ( ((((( Character.isLetter( input.LA(1) ) )||( Character.isDigit( input.LA(1) ) ))&&(( Character.isLetter( input.LA(1) ) )||( Character.isDigit( input.LA(1) ) )))&&synpred25_Templating2Lexer())) ) {
                alt8=25;
            }
            else if ( (true) ) {
                alt8=26;
            }
            else {
                if (state.backtracking>0) {state.failed=true; return ;}
                NoViableAltException nvae =
                    new NoViableAltException("", 8, 13, input);
FileLine
org/deegree/featureinfo/templating/Templating2Lexer.java835
org/deegree/featureinfo/templating/Templating2Lexer.java879
                switch (alt3) {
            	case 1 :
            	    // org/deegree/featureinfo/templating/Templating2Lexer.g:
            	    {
            	    if ( (input.LA(1) >= '\u0000' && input.LA(1) <= '\t')||(input.LA(1) >= '\u000B' && input.LA(1) <= '.')||(input.LA(1) >= '0' && input.LA(1) <= ';')||(input.LA(1) >= '@' && input.LA(1) <= '\uFFFF') ) {
            	        input.consume();
            	        state.failed=false;
            	    }
            	    else {
            	        if (state.backtracking>0) {state.failed=true; return ;}
            	        MismatchedSetException mse = new MismatchedSetException(null,input);
            	        recover(mse);
            	        throw mse;
            	    }


            	    }
            	    break;

            	default :
            	    if ( cnt3 >= 1 ) break loop3;
FileLine
org/deegree/featureinfo/templating/Templating2Lexer.java1264
org/deegree/featureinfo/templating/Templating2Lexer.java1291
org/deegree/featureinfo/templating/Templating2Lexer.java1318
org/deegree/featureinfo/templating/Templating2Lexer.java1369
org/deegree/featureinfo/templating/Templating2Lexer.java1396
org/deegree/featureinfo/templating/Templating2Lexer.java1423
org/deegree/featureinfo/templating/Templating2Lexer.java1450
org/deegree/featureinfo/templating/Templating2Lexer.java1474
org/deegree/featureinfo/templating/Templating2Lexer.java1498
            }
            else if ( (synpred24_Templating2Lexer()) ) {
                alt8=24;
            }
            else if ( ((((( Character.isLetter( input.LA(1) ) )||( Character.isDigit( input.LA(1) ) ))&&(( Character.isLetter( input.LA(1) ) )||( Character.isDigit( input.LA(1) ) )))&&synpred25_Templating2Lexer())) ) {
                alt8=25;
            }
            else if ( (true) ) {
                alt8=26;
            }
            else {
                if (state.backtracking>0) {state.failed=true; return ;}
                NoViableAltException nvae =
                    new NoViableAltException("", 8, 5, input);
FileLine
org/deegree/featureinfo/templating/Templating2Lexer.java1240
org/deegree/featureinfo/templating/Templating2Lexer.java1267
org/deegree/featureinfo/templating/Templating2Lexer.java1294
org/deegree/featureinfo/templating/Templating2Lexer.java1321
org/deegree/featureinfo/templating/Templating2Lexer.java1345
org/deegree/featureinfo/templating/Templating2Lexer.java1372
org/deegree/featureinfo/templating/Templating2Lexer.java1399
org/deegree/featureinfo/templating/Templating2Lexer.java1426
org/deegree/featureinfo/templating/Templating2Lexer.java1453
org/deegree/featureinfo/templating/Templating2Lexer.java1477
org/deegree/featureinfo/templating/Templating2Lexer.java1501
org/deegree/featureinfo/templating/Templating2Lexer.java1522
            }
            else if ( ((((( Character.isLetter( input.LA(1) ) )||( Character.isDigit( input.LA(1) ) ))&&(( Character.isLetter( input.LA(1) ) )||( Character.isDigit( input.LA(1) ) )))&&synpred25_Templating2Lexer())) ) {
                alt8=25;
            }
            else if ( (true) ) {
                alt8=26;
            }
            else {
                if (state.backtracking>0) {state.failed=true; return ;}
                NoViableAltException nvae =
                    new NoViableAltException("", 8, 4, input);
FileLine
org/deegree/featureinfo/parsing/FeatureInfoParser.java170
org/deegree/featureinfo/parsing/FeatureInfoParser.java225
                    String name = reader.getLocalName();
                    String value = reader.getElementText();
                    SimplePropertyType tp = new SimplePropertyType( new QName( name ), 0, 1, STRING, null, null );
                    propValues.add( new SimpleProperty( tp, value ) );
                    props.add( tp );
                    nextElement( reader );
                }

                GenericFeatureType ft = new GenericFeatureType( new QName( ftName ), props, false );
                col.add( new GenericFeature( ft, "ftName_" + ++count, propValues, null ) );
                nextElement( reader );
            }
            nextElement( reader );
        }
        return col;
    }