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 instanceof DefaultPolarItemRenderer)) {
return false;
}
DefaultPolarItemRenderer that = (DefaultPolarItemRenderer) obj;
if (!this.seriesFilled.equals(that.seriesFilled)) {
return false;
}
return super.equals(obj);
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/chart/renderer/DefaultPolarItemRenderer.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 instanceof ↵
|
5 | ContourEntity ce = (ContourEntity↵ | | 5 | DefaultPolarItemRenderer)) {↵
|
| | | 6 | return false;↵
|
| | | 7 | }↵
|
6 | ) obj;↵ | | 8 | DefaultPolarItemRenderer that = (DefaultPolarItemRenderer) obj;↵
|
7 | if (this.index != ce.index) {↵ | | 9 | if (!this.seriesFilled.equals(that.seriesFilled)) {↵
|
8 | return false; ↵ | | 10 | return false;↵
|
9 | ↵ | | |
|
10 | }↵ | | 11 | }↵
|
11 | return true;↵ | | 12 | return ↵
|
12 | }↵ | | |
|
13 | return false; | | 13 | super.equals(obj);
|
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 10 |