if (obj == this) { return true; } if (obj instanceof ContourEntity && super.equals(obj)) { ContourEntity ce = (ContourEntity) obj; if (this.index != ce.index) { return false; } return true; } return false;
if (obj == null) { return false; } if (obj == this) { return true; } if (obj instanceof MatrixSeriesCollection) { MatrixSeriesCollection c = (MatrixSeriesCollection) obj; return ObjectUtilities.equal(this.seriesList, c.seriesList); } return false;
Clone fragments detected by clone detection tool
File path: /jfreechart-1.0.10/src/org/jfree/chart/entity/ContourEntity.java File path: /jfreechart-1.0.10/src/org/jfree/data/xy/MatrixSeriesCollection.java
Method name: boolean equals(Object) Method name: boolean equals(Object)
Number of AST nodes: 8 Number of AST nodes: 8
1
if (obj == this) {
1
if (obj == null) {
2
            return true;   
2
            return false;
3
        }
3
        }
4
        if (obj instanceof ContourEntity && super.equals(obj)) {
4
        if (obj == this) {
5
            ContourEntity ce = (ContourEntity) obj;
5
            return true;
6
            if (this.index != ce.index) {
6
        
7
                return false;   
8
            }
9
            return true
7
}
8
        if (obj instanceof MatrixSeriesCollection) {
9
            MatrixSeriesCollection c = (MatrixSeriesCollection) obj;
10
;
10
            return ObjectUtilities.equal(this.seriesList, c.seriesList);
11
        }
11
        }
12
        return false;
12
        return false;
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.3
Clones locationClones are in different classes
Number of node comparisons5