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: void drawAnnotations(Graphics2D, Rectangle2D)
|
Method name: void draw(Graphics2D, Rectangle2D, Point2D, PlotState, PlotRenderingInfo)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | Iterator iterator = getAnnotations().iterator();↵ | 1 | Iterator iterator = this.rangeMarkers.iterator();↵ | |
2 | while (iterator.hasNext()) {↵ | 2 | while (iterator.hasNext()) {↵ | |
3 | CategoryAnnotation annotation↵ | 3 | ↵ | |
4 | = (CategoryAnnotation) iterator.next();↵ | 4 | Marker marker = (Marker) iterator.next();↵ | |
5 | annotation.draw(g2, this, dataArea, getDomainAxis(),↵ | 5 | ↵ | |
6 | getRangeAxis());↵ | 6 | drawRangeMarker(g2, this, getRangeAxis(), marker, dataArea);↵ | |
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) | 1.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 11 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 30.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | Iterator iterator = getAnnotations().iterator(); |
| 61 | Iterator iterator = this.rangeMarkers.iterator(); | ||||||||||
3 | while (iterator.hasNext()) | 62 | while (iterator.hasNext()) | |||||||||||
4 | CategoryAnnotation annotation = (CategoryAnnotation)iterator.next(); |
| | |||||||||||
5 | annotation.draw(g2, this, dataArea, getDomainAxis(), getRangeAxis()); |
| | |||||||||||
|
| 63 | Marker marker = (Marker)iterator.next(); | |||||||||||
| 64 | drawRangeMarker(g2, this, getRangeAxis(), marker, dataArea); |
Row | Violation |
---|---|
1 | Unmatched statement CategoryAnnotation annotation=(CategoryAnnotation)iterator.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement annotation.draw(g2,this,dataArea,getDomainAxis(),getRangeAxis()); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted |
3 | Unmatched statement Marker marker=(Marker)iterator.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |