File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java | |||
Method name: Map drawAxes(Graphics2D, Rectangle2D, Rectangle2D, PlotRenderingInfo)
|
Method name: Map drawAxes(Graphics2D, Rectangle2D, Rectangle2D, PlotRenderingInfo)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | while (iterator.hasNext()) {↵ | 1 | while (iterator.hasNext()) {↵ | |
2 | ValueAxis axis = (ValueAxis) iterator.next();↵ | 2 | ValueAxis axis = (ValueAxis) iterator.next();↵ | |
3 | AxisState info = axis.draw(g2, cursor, plotArea, dataArea,↵ | 3 | AxisState info = axis.draw(g2, cursor, plotArea, dataArea,↵ | |
4 | RectangleEdge.TOP, plotState);↵ | 4 | RectangleEdge.BOTTOM, plotState);↵ | |
5 | cursor = info.getCursor();↵ | 5 | cursor = info.getCursor();↵ | |
6 | axisStateMap.put(axis, info);↵ | 6 | axisStateMap.put(axis, info);↵ | |
7 | } | 7 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in the same method |
Number of node comparisons | 26 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 44.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
13 | while (iterator.hasNext()) | 20 | while (iterator.hasNext()) | |||||||||||
14 | ValueAxis axis = (ValueAxis)iterator.next(); | 21 | ValueAxis axis = (ValueAxis)iterator.next(); | |||||||||||
15 | AxisState info = axis.draw(g2, cursor, plotArea, dataArea, RectangleEdge.TOP, plotState); |
| 22 | AxisState info = axis.draw(g2, cursor, plotArea, dataArea, RectangleEdge.BOTTOM, plotState); | ||||||||||
16 | cursor = info.getCursor(); | 23 | cursor = info.getCursor(); | |||||||||||
17 | axisStateMap.put(axis, info); | 24 | axisStateMap.put(axis, info); |
Row | Violation |
---|