CPD Results

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

Duplications

File Line
org/deegree/services/wps/provider/jrxml/contentprovider/map/LegendRenderable.java 92
org/deegree/services/wps/provider/jrxml/contentprovider/map/MapContentProvider.java 556
                    Image img = legend.second;
                    if ( img != null ) {
                        // TODO: resolution
                        if ( img.getWidth( null ) < 50 ) {
                            // it is assumed that no label is assigned
                            g.drawImage( img, 0, k, null );
                            g.drawString( legend.first, img.getWidth( null ) + 10, k + img.getHeight( null ) / 2 );
                        } else {
                            g.drawImage( img, 0, k, null );
                        }
                        k = k + img.getHeight( null ) + 10;
                    } else {
                        g.drawString( "- " + legend.first, 0, k + 10 );
                        k = k + 20;
                    }
                }
            }