1467-2-3

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(dataArea.getMinX(), value, dataArea.getMaxX(), value); } else if (orientation == PlotOrientation.VERTICAL) { line = new Line2D.Double(value, dataArea.getMinY(), value, dataArea.getMaxY()); }

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/category/AbstractCategoryItemRenderer.java
Method name: `void drawAxisLine(Graphics2D, double, Rectangle2D, RectangleEdge)` |  | Method name: `void drawDomainGridline(Graphics2D, CategoryPlot, Rectangle2D, double)`
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(dataArea.getMinX(), value,↵

3

                        dataArea.getMaxY());↵

3

                        dataArea.getMaxX(), value);↵

4

            }↵

4

            }↵

5

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

5

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

6

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

6

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

7

                        dataArea.getMaxY());↵

7

                        dataArea.getMaxY());↵

8

            }

8

            }

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