CPD Results

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

Duplications

FileLine
org/deegree/protocol/wms/ops/SLDParser.java214
org/deegree/protocol/wms/ops/SLDParser.java346
                        }

                        // TODO skipped
                        if ( in.getLocalName().equals( "Description" ) ) {
                            skipElement( in );
                        }

                        // TODO skipped
                        if ( in.getLocalName().equals( "Title" ) ) {
                            in.getElementText();
                        }

                        // TODO skipped
                        if ( in.getLocalName().equals( "Abstract" ) ) {
                            in.getElementText();
                        }

                        // TODO skipped
                        if ( in.getLocalName().equals( "IsDefault" ) ) {
                            in.getElementText();
                        }

                        if ( in.getLocalName().equals( "FeatureTypeStyle" )
                             || in.getLocalName().equals( "CoverageStyle" )
                             || in.getLocalName().equals( "OnlineResource" ) ) {
                            Style style = SymbologyParser.INSTANCE.parseFeatureTypeOrCoverageStyle( in );
FileLine
org/deegree/protocol/wms/client/WMSClient.java500
org/deegree/protocol/wms/client/WMSClient.java549
                    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;
    }

    private FeatureCollection readUMNCollection( XMLStreamReader reader )
FileLine
org/deegree/protocol/wms/ops/SLDParser.java128
org/deegree/protocol/wms/ops/SLDParser.java299
                if ( in.getLocalName().equals( "LayerFeatureConstraints" ) ) {

                    while ( !( in.isEndElement() && in.getLocalName().equals( "LayerFeatureConstraints" ) ) ) {
                        in.nextTag();

                        while ( !( in.isEndElement() && in.getLocalName().equals( "FeatureTypeConstraint" ) ) ) {
                            in.nextTag();

                            // skip feature type name, it is useless in this context (or is it?) TODO
                            if ( in.getLocalName().equals( "FeatureTypeName" ) ) {
                                in.getElementText();
                                in.nextTag();
                            }

                            if ( in.getLocalName().equals( "Filter" ) ) {