215-1-2

if (this.equals(AxisLocation.TOP_OR_RIGHT)) { return AxisLocation.TOP_OR_RIGHT; } else if (this.equals(AxisLocation.BOTTOM_OR_RIGHT)) { return AxisLocation.BOTTOM_OR_RIGHT; } else if (this.equals(AxisLocation.TOP_OR_LEFT)) { return AxisLocation.TOP_OR_LEFT; } else if (this.equals(AxisLocation.BOTTOM_OR_LEFT)) { return AxisLocation.BOTTOM_OR_LEFT; } return null;
if (this.equals(RangeType.FULL)) { return RangeType.FULL; } else if (this.equals(RangeType.POSITIVE)) { return RangeType.POSITIVE; } else if (this.equals(RangeType.NEGATIVE)) { return RangeType.NEGATIVE; } return null;

Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/AxisLocation.java |  | File path: /jfreechart-1.0.10/src/org/jfree/data/RangeType.java
Method name: `Object readResolve()` |  | Method name: `Object readResolve()`
Number of AST nodes: 9 |  | Number of AST nodes: 7

1

    if (this.equals(AxisLocation.TOP_OR_RIGHT)) {↵

1

    if (this.equals(↵

2

                return AxisLocation.TOP_OR_RIGHT;↵

3

            }↵

4

            else if (this.equals(AxisLocation.BOTTOM_OR_RIGHT)) {↵

5

                return AxisLocation.BOTTOM_OR_RIGHT↵

2

    RangeType.FULL)) {↵

6

    ;↵

3

                return RangeType.FULL;↵

7

            }    ↵

4

            }↵

8

            else if (this.equals(AxisLocation.TOP_OR_LEFT)) {↵

5

            else if (this.equals(RangeType.POSITIVE)) {↵

9

                return AxisLocation.TOP_OR_LEFT;↵

6

                return RangeType.POSITIVE;↵

10

            }    ↵

7

            }↵

11

            else if (this.equals(AxisLocation.BOTTOM_OR_LEFT)) {↵

8

            else if (this.equals(↵

12

                return AxisLocation.BOTTOM_OR_LEFT↵

9

    RangeType.NEGATIVE)) {↵

13

    ;↵

10

                return RangeType.NEGATIVE;↵

14

            }↵

11

            }↵

15

            return null;

12

            return null;

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