for (int i = 0; i < this.labels.size(); i++) { PieLabelRecord plr = getPieLabelRecord(i); if (y > plr.getLowerY()) { return true; } y = plr.getUpperY(); }
for (int i = 0; i < this.domainAxes.size(); i++) { ValueAxis axis = (ValueAxis) this.domainAxes.get(i); if (axis != null) { axis.removeChangeListener(this); } }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/PieLabelDistributor.java File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
Method name: boolean isOverlap() Method name: void clearDomainAxes()
Number of AST nodes: 5 Number of AST nodes: 4
1
for (int i = 0; i < this.labels.size(); i++) {
1
for (int i = 0; i < this.domainAxes.size(); i++) {
2
            PieLabelRecord plr = getPieLabelRecord(i);
2
            
3
            if (y > plr.getLowerY()) {
4
                return true;
5
            }
6
            y = plr.getUpperY();    
3
ValueAxis axis = (ValueAxis) this.domainAxes.get(i);
4
            if (axis != null) {
5
                axis.removeChangeListener(this);
6
            }
7
        }
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 in different classes
Number of node comparisons1