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; }
if (this.equals(LengthConstraintType.NONE)) { return LengthConstraintType.NONE; } else if (this.equals(LengthConstraintType.RANGE)) { return LengthConstraintType.RANGE; } else if (this.equals(LengthConstraintType.FIXED)) { return LengthConstraintType.FIXED; }
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/DateTickMarkPosition.java File path: /jfreechart-1.0.10/src/org/jfree/chart/block/LengthConstraintType.java
Method name: Object readResolve() Method name: Object readResolve()
Number of AST nodes: 6 Number of AST nodes: 6
1
if (this.equals(DateTickMarkPosition.START)) {
1
if (this.equals(
2
            return DateTickMarkPosition.START
2
LengthConstraintType.NONE)) {
3
;
3
            return LengthConstraintType.NONE;
4
        }
4
        }
5
        else if (this.equals(DateTickMarkPosition.MIDDLE)) {
5
        else if (this.equals(
6
            return DateTickMarkPosition.MIDDL
6
LengthConstraintType.RANGE)) {
7
E;
7
            return LengthConstraintType.RANGE;
8
        }    
8
        }
9
        else if (this.equals(DateTickMarkPosition.END)) {
9
        else if (this.equals(LengthConstraintType.FIXED)) {
10
            return DateTickMarkPosition.END;
10
            return LengthConstraintType.FIXED;
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)1.1
Clones locationClones are in different classes
Number of node comparisons9