215-1-5

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(DateTickMarkPosition.START)) { return DateTickMarkPosition.START; } else if (this.equals(DateTickMarkPosition.MIDDLE)) { return DateTickMarkPosition.MIDDLE; } else if (this.equals(DateTickMarkPosition.END)) { return DateTickMarkPosition.END; } 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/chart/axis/DateTickMarkPosition.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)) {↵

2

    DateTickMarkPosition.START)) {↵

5

                return AxisLocation.BOTTOM_OR_RIGHT;↵

3

                return DateTickMarkPosition.START;↵

6

            }    ↵

4

            }↵

7

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

5

            else if (this.equals(↵

8

                return AxisLocation.TOP_OR_LEFT↵

6

    DateTickMarkPosition.MIDDLE)) {↵

9

    ;↵

7

                return DateTickMarkPosition.MIDDLE;↵

10

            }    ↵

8

            }    ↵

11

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

9

            else if (this.equals(↵

12

                return AxisLocation.BOTTOM_OR_LEFT↵

10

    DateTickMarkPosition.END)) {↵

13

    ;↵

11

                return DateTickMarkPosition.END;↵

14

            }↵

12

            }    ↵

15

            return null;

13

            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