for (int i = 0; i < this.domainAxes.size(); i++) {
ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);
if (domainAxis != null) {
domainAxis.zoomRange(lowerPercent, upperPercent);
}
}
for (int seriesNo = 0; seriesNo < seriesCount; seriesNo++) {
XYSeries dataSeries = (XYSeries) this.data.get(seriesNo);
if (!dataSeries.equals(series)) {
dataSeries.add(xValue, null);
}
}
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/data/xy/DefaultTableXYDataset.java
|
Method name: void zoomDomainAxes(double, double, PlotRenderingInfo, Point2D)
|
|
Method name: void updateXPoints(XYSeries)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | for (int i = 0; i < this.domainAxes.size(); i++) {↵ | | 1 | for (int seriesNo = 0; seriesNo < seriesCount; seriesNo++) {↵
|
2 | ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);↵ | | 2 | ↵
|
| | | 3 | XYSeries dataSeries = (XYSeries) this.data.get(seriesNo);↵
|
3 | if (domainAxis != null) {↵ | | 4 | if (↵
|
4 | domainAxis.zoomRange(lowerPercent, upperPercent↵ | | 5 | !dataSeries.equals(series)) {↵
|
5 | );↵ | | 6 | dataSeries.add(xValue, null);↵
|
6 | }↵ | | 7 | ↵
|
| | | 8 | }↵
|
7 | } | | 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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |