for (int i = 0; i < this.domainAxes.size(); i++) {
CategoryAxis xAxis = (CategoryAxis) this.domainAxes.get(i);
if (xAxis != null) {
CategoryAxis clonedAxis = (CategoryAxis) xAxis.clone();
clone.setDomainAxis(i, clonedAxis);
}
}
for (int i = 0; i < this.subplots.size(); i++) {
XYPlot subplot = (XYPlot) this.subplots.get(i);
PlotRenderingInfo subplotInfo = info.getSubplotInfo(i);
subplot.handleClick(x, y, subplotInfo);
}
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/CombinedRangeXYPlot.java
|
Method name: Object clone()
|
|
Method name: void handleClick(int, int, PlotRenderingInfo)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | for (int i = 0; i < this.domainAxes.size(); i++) {↵ | | 1 | for (int i = 0; i < this.subplots.size(); i++) {↵
|
2 | CategoryAxis xAxis = (CategoryAxis) this.domainAxes.get(i);↵ | | 2 | ↵
|
3 | if (xAxis != null) {↵ | | |
|
4 | CategoryAxis clonedAxis = (CategoryAxis) xAxis.clone();↵ | | |
|
5 | clone.setDomainAxis(i, clonedAxis↵ | | 3 | XYPlot subplot = (XYPlot) this.subplots.get(i);↵
|
| | | 4 | PlotRenderingInfo subplotInfo = info.getSubplotInfo(i);↵
|
6 | );↵ | | 5 | subplot.handleClick(x, y, subplotInfo);↵
|
7 | }↵ | | 6 | }
|
8 | } | | | |
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 |