for (int i = rendererCount - 1; i >= 0; i--) { XYItemRenderer r = getRenderer(i); if (i >= getDatasetCount()) { // we need the dataset to make continue; // a link to the axes } if (r != null) { ValueAxis domainAxis = getDomainAxisForDataset(i); ValueAxis rangeAxis = getRangeAxisForDataset(i); r.drawAnnotations(g2, dataArea, domainAxis, rangeAxis, Layer.BACKGROUND, info);
for (int i = rendererCount - 1; i >= 0; i--) { XYItemRenderer r = getRenderer(i); if (i >= getDatasetCount()) { // we need the dataset to make continue; // a link to the axes } if (r != null) { ValueAxis domainAxis = getDomainAxisForDataset(i); ValueAxis rangeAxis = getRangeAxisForDataset(i); r.drawAnnotations(g2, dataArea, domainAxis, rangeAxis, Layer.FOREGROUND, info);
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
for (int i = rendererCount - 1; i >= 0; i--) {
1
for (int i = rendererCount - 1; i >= 0; i--) {
2
                XYItemRenderer r = getRenderer(i);
2
                XYItemRenderer r = getRenderer(i);
3
                if (i >= getDatasetCount()) { // we need the dataset to make
3
                if (i >= getDatasetCount()) { // we need the dataset to make
4
                    continue;                 // a link to the axes
4
                    continue;                 // a link to the axes
5
                }
5
                }
6
                if (r != null) {
6
                if (r != null) {
7
                    ValueAxis domainAxis = getDomainAxisForDataset(i);
7
                    ValueAxis domainAxis = getDomainAxisForDataset(i);
8
                    ValueAxis rangeAxis = getRangeAxisForDataset(i);
8
                    ValueAxis rangeAxis = getRangeAxisForDataset(i);
9
                    r.drawAnnotations(g2, dataArea, domainAxis, rangeAxis,
9
                    r.drawAnnotations(g2, dataArea, domainAxis, rangeAxis,
10
                            Layer.BACKGROUND, info);
10
                            Layer.FOREGROUND, info);
11
                
11
                
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0