1467-2-11

if (edge == RectangleEdge.LEFT) { axisLine = new Line2D.Double(cursor, dataArea.getY(), cursor, dataArea.getMaxY()); } else if (edge == RectangleEdge.RIGHT) { axisLine = new Line2D.Double(cursor, dataArea.getY(), cursor, dataArea.getMaxY()); }
if (orientation == PlotOrientation.HORIZONTAL) { line = new Line2D.Double(v, dataArea.getMinY(), v, dataArea.getMaxY()); } else if (orientation == PlotOrientation.VERTICAL) { line = new Line2D.Double(dataArea.getMinX(), v, dataArea.getMaxX(), v); }

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/ValueAxis.java |  | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/AbstractXYItemRenderer.java
Method name: `void drawAxisLine(Graphics2D, double, Rectangle2D, RectangleEdge)` |  | Method name: `void drawRangeMarker(Graphics2D, XYPlot, ValueAxis, Marker, Rectangle2D)`
Number of AST nodes: 4 |  | Number of AST nodes: 4

1

    if (edge == RectangleEdge.LEFT) {↵

1

    if (orientation == PlotOrientation.HORIZONTAL) {↵

2

                axisLine = new Line2D.Double(cursor, dataArea.getY(), cursor,↵

2

                    line = new Line2D.Double(v, dataArea.getMinY(), ↵

3

    v,↵

3

                        dataArea.getMaxY());↵

4

                            dataArea.getMaxY());↵

4

            }↵

5

            ↵

6

        }↵

5

            else if (edge == RectangleEdge.RIGHT) {↵

7

                else if (orientation == PlotOrientation.VERTICAL) {↵

6

                axisLine = new Line2D.Double(cursor, dataArea.getY(), cursor,↵

8

                    line = new Line2D.Double(dataArea.get↵

9

    MinX(), v,↵

7

                        dataArea.getMaxY());↵

10

                            dataArea.getMaxX(), v);↵

8

            }

11

                }

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.4
Clones location | Clones are in different classes
Number of node comparisons | 4