File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CategoryPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java | |||
Method name: void drawDomainMarkers(Graphics2D, Rectangle2D, int, Layer)
|
Method name: void drawDomainMarkers(Graphics2D, Rectangle2D, int, Layer)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (markers != null && axis != null) {↵ | 1 | if (markers != null && axis != null) {↵ | |
2 | Iterator iterator = markers.iterator();↵ | 2 | Iterator iterator = markers.iterator();↵ | |
3 | while (iterator.hasNext()) {↵ | 3 | while (iterator.hasNext()) {↵ | |
4 | CategoryMarker marker = (CategoryMarker) iterator.next();↵ | 4 | Marker marker = (Marker) iterator.next();↵ | |
5 | r.drawDomainMarker(g2, this, axis, marker, dataArea);↵ | 5 | r.drawDomainMarker(g2, this, axis, marker, dataArea);↵ | |
6 | }↵ | 6 | }↵ | |
7 | } | 7 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 13 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 301.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | if (markers != null && axis != null) |
| 8 | if (markers != null && axis != null) | ||||||||||||||||||
7 | Iterator iterator = markers.iterator(); | 9 | Iterator iterator = markers.iterator(); | |||||||||||||||||||
8 | while (iterator.hasNext()) | 10 | while (iterator.hasNext()) | |||||||||||||||||||
9 | CategoryMarker marker = (CategoryMarker)iterator.next(); |
| 11 | Marker marker = (Marker)iterator.next(); | ||||||||||||||||||
10 | r.drawDomainMarker(g2, this, axis, marker, dataArea); |
| | |||||||||||||||||||
|
| 12 | r.drawDomainMarker(g2, this, axis, marker, dataArea); |
Row | Violation |
---|---|
1 | Expression (CategoryMarker)iterator.next() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression (Marker)iterator.next() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement r.drawDomainMarker(g2,this,axis,marker,dataArea); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Unmatched statement r.drawDomainMarker(g2,this,axis,marker,dataArea); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
5 | Clone fragment #1 returns variable marker with type org.jfree.chart.plot.CategoryMarker , while Clone fragment #2 returns variable marker with type org.jfree.chart.plot.Marker |