LegendGraphic clone = (LegendGraphic) super.clone();
clone.shape = ShapeUtilities.clone(this.shape);
clone.line = ShapeUtilities.clone(this.line);
return clone;
RelativeDateFormat clone = (RelativeDateFormat) super.clone();
clone.dayFormatter = (NumberFormat) this.dayFormatter.clone();
clone.secondFormatter = (NumberFormat) this.secondFormatter.clone();
return clone;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/title/LegendGraphic.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/util/RelativeDateFormat.java
|
Method name: Object clone()
|
|
Method name: Object clone()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | LegendGraphic clone = (LegendGraphic) super.clone();↵ | | |
|
2 | clone.shape = ShapeUtilities.clone(this.shape);↵ | | |
|
3 | clone.line = ShapeUtilities.clone(this.li↵ | | 1 | RelativeDateFormat clone = (RelativeDateFormat) super.clone();↵
|
| | | 2 | clone.dayFormatter = (NumberFormat) this.dayFormatter.clone();↵
|
4 | ne);↵ | | 3 | clone.secondFormatter = (NumberFormat) this.secondFormatter.clone();↵
|
5 | return clone; | | 4 | return clone;
|
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 16 |