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);
}
for (int i = 0; i < this.renderers.size(); i++) {
XYItemRenderer renderer2 = (XYItemRenderer) this.renderers.get(i);
if (renderer2 instanceof PublicCloneable) {
PublicCloneable pc = (PublicCloneable) renderer2;
clone.renderers.set(i, pc.clone());
}
}
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedDomainXYPlot.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
|
Method name: void handleClick(int, int, PlotRenderingInfo)
|
|
Method name: Object clone()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 5
|
|
1 | for (int i = 0; i < this.subplots.size(); i++) {↵ | | 1 | for (int i = 0; i < this.renderers.size(); i++) {↵
|
2 | XYPlot subplot = (XYPlot) this.subplots.get(i);↵ | | 2 | XYItemRenderer renderer2 = (XYItemRenderer) this.renderers.get(i);↵
|
3 | PlotRenderingInfo subplotInfo = info.getSubplotInfo(i);↵ | | 3 | ↵
|
4 | subplot.handleClick(x, y, subplotInfo↵ | | 4 | if (renderer2 instanceof PublicCloneable) {↵
|
| | | 5 | PublicCloneable pc = (PublicCloneable) renderer2;↵
|
5 | );↵ | | 6 | clone.renderers.set(i, pc.clone());↵
|
6 | } | | 7 | }↵
|
| | | 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 |