for (int i = 0; i < this.rangeAxes.size(); i++) {
ValueAxis axis = (ValueAxis) this.rangeAxes.get(i);
if (axis != null) {
axis.removeChangeListener(this);
}
}
if (this.renderer != null) {
int seriesCount = this.dataset.getSeriesCount();
for (int i = 0; i < seriesCount; i++) {
LegendItem item = this.renderer.getLegendItem(i);
result.add(item);
}
}
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/PolarPlot.java
|
Method name: void clearRangeAxes()
|
|
Method name: LegendItemCollection getLegendItems()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 5
|
|
1 | for (int i = 0; i < this.rangeAxes.size(); i++) {↵ | | |
|
2 | ValueAxis axis = (ValueAxis) this.rangeAxes.get(i↵ | | 1 | if (this.renderer != null) {↵
|
3 | );↵ | | 2 | int seriesCount = this.dataset.getSeriesCount();↵
|
4 | if (axis != null) {↵ | | 3 | ↵
|
5 | axis.removeChangeListener(this↵ | | 4 | for (int i = 0; i < seriesCount; i++) {↵
|
| | | 5 | LegendItem item = this.renderer.getLegendItem(i);↵
|
6 | );↵ | | 6 | result.add(item);↵
|
7 | }↵ | | 7 | ↵
|
| | | 8 | }↵
|
8 | } | | 9 | }
|
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1 |