for (int i = 0; i < this.rangeAxes.size(); i++) {
ValueAxis yAxis = (ValueAxis) this.rangeAxes.get(i);
if (yAxis != null) {
ValueAxis clonedAxis = (ValueAxis) yAxis.clone();
clone.setRangeAxis(i, clonedAxis);
}
}
for (int item = 0, itemCount = this.rows.size(); item < itemCount;
item++) {
row = (DefaultKeyedValues) this.rows.get(item);
int columnIndex = row.getIndex(columnKey);
if (columnIndex >= 0) {
row.removeValue(columnIndex);
}
}
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/data/DefaultKeyedValues2D.java
|
Method name: Object clone()
|
|
Method name: void removeValue(Comparable, Comparable)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | for (int i = 0; i < this.rangeAxes.size(); i++) {↵ | | 1 | for (int item = 0, i↵
|
2 | ValueAxis yAxis = (↵ | | 2 | temCount = this.rows.size(); item < itemCount; ↵
|
| | | 3 | item++) {↵
|
3 | ValueAxis) this.rangeAxes.get(i);↵ | | 4 | row = (DefaultKeyedValues) this.rows.get(item);↵
|
4 | if (yAxis != null) {↵ | | 5 | ↵
|
5 | ValueAxis clonedAxis = (ValueAxis) yAxis.clone();↵ | | |
|
6 | clone.setRangeAxis(i, clonedAxis↵ | | 6 | int columnIndex = row.getIndex(columnKey);↵
|
| | | 7 | if (columnIndex >= 0) {↵
|
7 | );↵ | | 8 | row.removeValue(columnIndex);↵
|
8 | }↵ | | 9 | ↵
|
| | | 10 | }↵
|
9 | } | | 11 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |