File path: /jfreechart-1.0.10/src/org/jfree/data/xy/VectorSeriesCollection.java | File path: /jfreechart-1.0.10/src/org/jfree/data/xy/XYSeriesCollection.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (obj == this) {↵ | 1 | if (obj == this) {↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (!(obj instanceof VectorSeriesCollection)) {↵ | 4 | if (!(obj instanceof XYSeriesCollection)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | VectorSeriesCollection that = (VectorSeriesCollection) obj;↵ | 7 | XYSeriesCollection that = (XYSeriesCollection) obj;↵ | |
8 | return ObjectUtilities.equal(this.data, that.data); | 8 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.8 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 14 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 5.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (obj == this) | 1 | if (obj == this) | |||||||||||||||||
2 | return true; | 2 | return true; | |||||||||||||||||
3 | if (!(obj instanceof VectorSeriesCollection)) |
| 3 | if (!(obj instanceof XYSeriesCollection)) | ||||||||||||||||
4 | return false; | 4 | return false; | |||||||||||||||||
5 | VectorSeriesCollection that = (VectorSeriesCollection)obj; |
| 5 | XYSeriesCollection that = (XYSeriesCollection)obj; | ||||||||||||||||
6 | return ObjectUtilities.equal(this.data, that.data); |
| 6 | return ObjectUtilities.equal(this.data, that.data); |
Row | Violation |
---|---|
1 | Expression that.data cannot be unified with expression that.data , because common superclass org.jfree.data.xy.AbstractXYDataset does not declare member(s) private List#RAW data |