for (int i = 0; i < this.domainAxes.size(); i++) { ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i); if (domainAxis != null) { domainAxis.zoomRange(lowerPercent, upperPercent); } }
for (int i = 0; i < this.data.size(); i++) { ComparableObjectItem item = (ComparableObjectItem) this.data.get(i); if (item.getComparable().equals(x)) { return i; } }
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/data/ComparableObjectSeries.java
Method name: void zoomDomainAxes(double, double, PlotRenderingInfo, Point2D) Method name: int indexOf(Comparable)
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.data.size(); i++) {
2
            ValueAxis domainAxis = (ValueAxis) this.domainAxes
2
                ComparableObjectItem item = (ComparableObjectItem) 
3
.get(i);
3
                        this.data.get(i);
4
            if (domainAxis != null) {
4
            
5
                domainAxis.zoomRange(lowerPercent, upperPercent);
5
    if (item.getComparable().equals(x)) {
6
                    return i;   
6
            }
7
                }
7
        }
8
            }
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.1
Clones locationClones are in different classes
Number of node comparisons1