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