if (edge == RectangleEdge.TOP || edge == RectangleEdge.BOTTOM) { x = dataArea.getMaxX(); y = cursor; arrow = this.rightArrow; } else if (edge == RectangleEdge.LEFT || edge == RectangleEdge.RIGHT) { x = cursor; y = dataArea.getMinY(); arrow = this.upArrow;
if (edge == RectangleEdge.TOP || edge == RectangleEdge.BOTTOM) { x = dataArea.getMinX(); y = cursor; arrow = this.leftArrow; } else if (edge == RectangleEdge.LEFT || edge == RectangleEdge.RIGHT) { x = cursor; y = dataArea.getMaxY(); arrow = this.downArrow;
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/axis/ValueAxis.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
if (edge == RectangleEdge.TOP || edge == RectangleEdge.BOTTOM) {
1
if (edge == RectangleEdge.TOP || edge == RectangleEdge.BOTTOM) {
2
                x = dataArea.getMaxX();
2
                x = dataArea.getMinX();
3
                y = cursor;
3
                y = cursor;
4
                arrow = this.rightArrow;
4
                arrow = this.leftArrow;
5
            }
5
            }
6
            else if (edge == RectangleEdge.LEFT
6
            else if (edge == RectangleEdge.LEFT
7
                    || edge == RectangleEdge.RIGHT) {
7
                    || edge == RectangleEdge.RIGHT) {
8
                x = cursor;
8
                x = cursor;
9
                y = dataArea.getMinY();
9
                y = dataArea.getMaxY();
10
                arrow = this.upArrow;
10
                arrow = this.downArrow;
11
            
11
            
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 location
Number of node comparisons0