RelativeDateFormat clone = (RelativeDateFormat) super.clone(); clone.dayFormatter = (NumberFormat) this.dayFormatter.clone(); clone.secondFormatter = (NumberFormat) this.secondFormatter.clone(); return clone;
TimeTableXYDataset clone = (TimeTableXYDataset) super.clone(); clone.values = (DefaultKeyedValues2D) this.values.clone(); clone.workingCalendar = (Calendar) this.workingCalendar.clone(); return clone;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/util/RelativeDateFormat.java File path: /jfreechart-1.0.10/src/org/jfree/data/time/TimeTableXYDataset.java
Method name: Object clone() Method name: Object clone()
Number of AST nodes: 4 Number of AST nodes: 4
1
RelativeDateFormat clone = (RelativeDateFormat) super.clone();
1
TimeTableXYDataset clone = (TimeTableXYDataset) super.clone();
2
        clone.dayFormatter = (NumberFormat) this.dayFormatter.clone();
2
        clone.values = (DefaultKeyedValues2D) this.values.clone();
3
        clone.secondFormatter = (NumberFormat) this.secondFormatter.clone();
3
        clone.workingCalendar = (Calendar) this.workingCalendar.clone();
4
        return clone;
4
        return clone;
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 locationClones are in different classes
Number of node comparisons16