if (this.rangeMarkers != null) {
Iterator iterator = this.rangeMarkers.iterator();
while (iterator.hasNext()) {
Marker marker = (Marker) iterator.next();
drawRangeMarker(g2, this, getRangeAxis(), marker, dataArea);
}
}
for (int s = 0; s < this.data.size(); s++) {
XYSeries series = (XYSeries) this.data.get(s);
if (series.getY(series.indexOf(x)) != null) {
return false;
}
}
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/ContourPlot.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/data/xy/DefaultTableXYDataset.java
|
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
|
Method name: boolean canPrune(Number)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | if (this.rangeMarkers != null) {↵ | | |
|
2 | Iterator iterator = this.rangeMarkers.iterator();↵ | | |
|
3 | while (iterator.hasNext()) {↵ | | |
|
4 | Marker marker = (Marker) iterator.next();↵ | | |
|
5 | drawRangeMarker(g2, this, getRangeAxis(), marker, dataArea)↵ | | 1 | for (int s = 0; s < this.data.size(); s++) {↵
|
| | | 2 | XYSeries series = (XYSeries) this.data.get(s);↵
|
| | | 3 | if (series.getY(series.indexOf(x)) != null) {↵
|
6 | ;↵ | | 4 | return false;↵
|
7 | }↵ | | 5 | }↵
|
8 | } | | 6 | }
|
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 |
Number of node comparisons | 1 |