CPD Results

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

Duplications

FileLine
org/deegree/services/wps/provider/jrxml/contentprovider/map/LegendRenderable.java92
org/deegree/services/wps/provider/jrxml/contentprovider/map/MapContentProvider.java556
                    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;
                    }
                }
            }