Axis axis = (Axis) iterator.next();
if (axis != null) {
AxisState axisState = axis.draw(g2, cursor, plotArea, dataArea,
RectangleEdge.RIGHT, plotState);
cursor = axisState.getCursor();
axisStateMap.put(axis, axisState);
}
while (iterator.hasNext()) {
ValueAxis axis = (ValueAxis) iterator.next();
AxisState info = axis.draw(g2, cursor, plotArea, dataArea,
RectangleEdge.RIGHT, plotState);
cursor = info.getCursor();
axisStateMap.put(axis, info);
}
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/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 | Axis axis = (Axis) iterator.next();↵ | | 1 | while (iterator.hasNext()) {↵
|
2 | if (axis != null) {↵ | | 2 | ValueAxis axis = ↵
|
3 | ↵ | | 3 | (ValueAxis) iterator.next();↵
|
4 | AxisState axisState = axis.draw(g2, cursor, plotArea, dataArea,↵ | | 4 | AxisState info = axis.draw(g2, cursor, plotArea, dataArea,↵
|
5 | RectangleEdge.RIGHT, plotState);↵ | | 5 | RectangleEdge.RIGHT, plotState);↵
|
6 | cursor = axisState.getCursor();↵ | | 6 | cursor = info.getCursor();↵
|
7 | axisStateMap.put(axis, axisState);↵ | | 7 | axisStateMap.put(axis, ↵
|
8 | ↵ | | 8 | info);↵
|
9 | } | | 9 | }
|
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 |