Axis axis = (Axis) iterator.next(); if (axis != null) { AxisState axisState = axis.draw(g2, cursor, plotArea, dataArea, RectangleEdge.BOTTOM, 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.TOP, 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.BOTTOM, plotState);
5
                    RectangleEdge.TOP, plotState);
6
                cursor = axisState.getCursor();
6
            cursor = info.getCursor();
7
                axisStateMap.put(axis, axisState);
7
            axisStateMap.put(axis, 
8
    
8
info);
9
        }
9
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons1