if (edge == RectangleEdge.TOP) { mark = new Line2D.Double( xx, cursor + dataArea.getHeight(), xx, cursor ); } else if (edge == RectangleEdge.BOTTOM) { mark = new Line2D.Double( xx, cursor, xx, cursor - dataArea.getHeight() ); }
if (orientation == PlotOrientation.HORIZONTAL) { g2.draw(new Line2D.Double(yyClose, xx, yyClose, xx - delta)); } else if (orientation == PlotOrientation.VERTICAL) { g2.draw(new Line2D.Double(xx, yyClose, xx + delta, yyClose)); }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/CyclicNumberAxis.java File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/HighLowRenderer.java
Method name: AxisState draw(Graphics2D, double, Rectangle2D, Rectangle2D, RectangleEdge, PlotRenderingInfo) Method name: void drawItem(Graphics2D, XYItemRendererState, Rectangle2D, PlotRenderingInfo, XYPlot, ValueAxis, ValueAxis, XYDataset, int, int, CrosshairState, int)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (edge == RectangleEdge.TOP) {
1
if (orientation == PlotOrientation.HORIZONTAL) {
2
                mark = new Line2D.Double(
2
                        g2.draw(new Line2D.Double(
3
yyClose, xx, yyClose,
3
                    xx, cursor + dataArea.getHeight(), xx, cursor
4
                                xx - delta));
4
                );
5
                    }
5
            }
6
        
6
            else if (edge == RectangleEdge.BOTTOM) {
7
            else if (orientation == PlotOrientation.VERTICAL) {
7
                mark = new Line2D.Double(
8
                        g2.draw(new Line2D.Double(
8
                    xx, cursor, xx, cursor - dataArea.getHeight()
9
        
9
xx, yyClose, xx + delta,
10
                                yyClose));
10
        );
11
        
11
            }
12
            }
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.5
Clones locationClones are in different classes
Number of node comparisons4