1083-2-3

if (orientation == PlotOrientation.VERTICAL) { double xx = axis.valueToJava2D(value, dataArea, RectangleEdge.BOTTOM); line = new Line2D.Double(xx, dataArea.getMinY(), xx, dataArea.getMaxY()); } else { double yy = axis.valueToJava2D(value, dataArea, RectangleEdge.LEFT); line = new Line2D.Double(dataArea.getMinX(), yy, dataArea.getMaxX(), yy); }
if (orientation == PlotOrientation.HORIZONTAL) { double xx = axis.valueToJava2D(value, dataArea, RectangleEdge.BOTTOM); line = new Line2D.Double(xx, dataArea.getMinY(), xx, dataArea.getMaxY()); } else { double yy = axis.valueToJava2D(value, dataArea, RectangleEdge.LEFT); line = new Line2D.Double(dataArea.getMinX(), yy, dataArea.getMaxX(), yy); }

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java |  | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/XYPlot.java
Method name: `` |  | Method name: ``
Number of AST nodes: 0 |  | Number of AST nodes: 0

1

    if (orientation == PlotOrientation.VERTICAL) {↵

1

    if (orientation == PlotOrientation.HORIZONTAL) {↵

2

                    double xx = axis.valueToJava2D(value, dataArea,↵

2

                    double xx = axis.valueToJava2D(value, dataArea,↵

3

                            RectangleEdge.BOTTOM);↵

3

                            RectangleEdge.BOTTOM);↵

4

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

4

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

5

                            dataArea.getMaxY());↵

5

                            dataArea.getMaxY());↵

6

                }↵

6

                }↵

7

                else {↵

7

                else {↵

8

                    double yy = axis.valueToJava2D(value, dataArea,↵

8

                    double yy = axis.valueToJava2D(value, dataArea,↵

9

                            RectangleEdge.LEFT);↵

9

                            RectangleEdge.LEFT);↵

10

                    line = new Line2D.Double(dataArea.getMinX(), yy,↵

10

                    line = new Line2D.Double(dataArea.getMinX(), yy,↵

11

                            dataArea.getMaxX(), yy);↵

11

                            dataArea.getMaxX(), yy);↵

12

                }

12

                }

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 |
Number of node comparisons | 0