ValueAxis axis = (ValueAxis) this.domainAxes.get(i); if (axis != null) { ValueAxis clonedAxis = (ValueAxis) axis.clone(); clone.domainAxes.set(i, clonedAxis); clonedAxis.setPlot(clone); clonedAxis.addChangeListener(clone); }
ValueAxis axis = (ValueAxis) this.rangeAxes.get(i); if (axis != null) { ValueAxis clonedAxis = (ValueAxis) axis.clone(); clone.rangeAxes.set(i, clonedAxis); clonedAxis.setPlot(clone); clonedAxis.addChangeListener(clone); }
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
ValueAxis axis = (ValueAxis) this.domainAxes.get(i);
1
ValueAxis axis = (ValueAxis) this.rangeAxes.get(i);
2
            if (axis != null) {
2
            if (axis != null) {
3
                ValueAxis clonedAxis = (ValueAxis) axis.clone();
3
                ValueAxis clonedAxis = (ValueAxis) axis.clone();
4
                clone.domainAxes.set(i, clonedAxis);
4
                clone.rangeAxes.set(i, clonedAxis);
5
                clonedAxis.setPlot(clone);
5
                clonedAxis.setPlot(clone);
6
                clonedAxis.addChangeListener(clone);
6
                clonedAxis.addChangeListener(clone);
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.0
Clones location
Number of node comparisons0