for (int index = 0; index < this.domainAxes.size(); index++) {
CategoryAxis xAxis = (CategoryAxis) this.domainAxes.get(index);
if (xAxis != null) {
axisCollection.add(xAxis, getDomainAxisEdge(index));
}
}
if (this.rangeMarkers != null) {
Iterator iterator = this.rangeMarkers.iterator();
while (iterator.hasNext()) {
Marker marker = (Marker) iterator.next();
drawRangeMarker(g2, this, getRangeAxis(), marker, dataArea);
}
}
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/ContourPlot.java
|
Method name: Map drawAxes(Graphics2D, Rectangle2D, Rectangle2D, PlotRenderingInfo)
|
|
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 5
|
|
1 | for (int index = 0; index < this.domainAxes.size(); index++) {↵ | | |
|
2 | CategoryAxis xAxis = (CategoryAxis) this.domainAxes.get(index);↵ | | |
|
3 | if (xAxis != null) {↵ | | |
|
4 | axisCollection.add(xAxis, getDomainAxisEdge(index)↵ | | 1 | if (this.rangeMarkers != null) {↵
|
| | | 2 | Iterator iterator = this.rangeMarkers.iterator();↵
|
| | | 3 | while (iterator.hasNext()) {↵
|
| | | 4 | Marker marker = (Marker) iterator.next();↵
|
5 | );↵ | | 5 | drawRangeMarker(g2, this, getRangeAxis(), marker, dataArea);↵
|
6 | }↵ | | 6 | }↵
|
7 | } | | 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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1 |