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