CPD Results

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

Duplications

File Line
org/deegree/layer/persistence/feature/QueryOptionsParser.java 81
org/deegree/layer/persistence/feature/QueryOptionsParser.java 109
    static OperatorFilter parseFilter( int layerIndex, URL configUrl )
                            throws XMLStreamException, URISyntaxException {

        File file = new File( configUrl.toURI() );
        XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader( new StreamSource( file ) );

        int idx = -1;
        while ( idx != layerIndex ) {
            moveReaderToFirstMatch( reader, new QName( "http://www.deegree.org/layers/feature", "FeatureLayer" ) );
            reader.next();
            ++idx;
        }

        while ( !( reader.isEndElement() && reader.getLocalName().equals( "FeatureLayer" ) ) ) {
            reader.next();
            if ( reader.isStartElement() && reader.getLocalName().equals( "Filter" )