for (int i = 0; i < this.domainAxes.size(); i++) { CategoryAxis axis = (CategoryAxis) this.domainAxes.get(i); if (axis != null) { axis.configure(); } }
for (int i = 0; i < this.datasets.size(); i++) { if (this.datasets.get(i) == dataset) { result = (CategoryItemRenderer) this.renderers.get(i); break; } }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java
Method name: void configureDomainAxes() Method name: CategoryItemRenderer getRendererForDataset(CategoryDataset)
Number of AST nodes: 4 Number of AST nodes: 4
1
for (int i = 0; i < this.domainAxes.size(); i++) {
1
for (int i = 0; i < this.datasets.size(); i++) {
2
            CategoryAxis axis = (CategoryAxis) this.domainAxes.get(i);
2
            
3
            if (axis != null) {
3
if (this.datasets.get(i) == dataset) {
4
                result = (CategoryItemRenderer) this.renderers.get(i);
4
                axis.configure();
5
                break;
5
            }
6
            }
6
        }
7
        }
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.2
Clones locationClones are declared in the same class
Number of node comparisons1