File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedRangeCategoryPlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/CombinedRangeXYPlot.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 14 | Number of AST nodes: 14 | |||
1 | if (obj == this) {↵ | 1 | if (obj == this) {↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (!(obj instanceof CombinedRangeCategoryPlot)) {↵ | 4 | if (!(obj instanceof CombinedRangeXYPlot)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | if (!super.equals(obj)) {↵ | 7 | if (!super.equals(obj)) {↵ | |
8 | return false;↵ | 8 | return false;↵ | |
9 | }↵ | 9 | }↵ | |
10 | CombinedRangeCategoryPlot that = (CombinedRangeCategoryPlot) obj;↵ | 10 | CombinedRangeXYPlot that = (CombinedRangeXYPlot) obj;↵ | |
11 | if (!ObjectUtilities.equal(this.subplots, that.subplots)) {↵ | 11 | if (!ObjectUtilities.equal(this.subplots, that.subplots)) {↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | }↵ | 13 | }↵ | |
14 | if (this.totalWeight != that.totalWeight) {↵ | 14 | if (this.totalWeight != that.totalWeight) {↵ | |
15 | return false;↵ | 15 | return false;↵ | |
16 | }↵ | 16 | }↵ | |
17 | if (this.gap != that.gap) {↵ | 17 | if (this.gap != that.gap) {↵ | |
18 | return false;↵ | 18 | return false;↵ | |
19 | }↵ | 19 | }↵ | |
20 | return true; | 20 |
| |
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) | 5.5 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 70 |
Number of mapped statements | 14 |
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) | 12.0 |
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 CombinedRangeCategoryPlot)) |
| 3 | if (!(obj instanceof CombinedRangeXYPlot)) | ||||||||||||||||
4 | return false; | 4 | return false; | |||||||||||||||||
5 | if (!super.equals(obj)) |
| 5 | if (!super.equals(obj)) | ||||||||||||||||
6 | return false; | 6 | return false; | |||||||||||||||||
7 | CombinedRangeCategoryPlot that = (CombinedRangeCategoryPlot)obj; |
| 7 | CombinedRangeXYPlot that = (CombinedRangeXYPlot)obj; | ||||||||||||||||
8 | if (!ObjectUtilities.equal(this.subplots, that.subplots)) |
| 8 | if (!ObjectUtilities.equal(this.subplots, that.subplots)) | ||||||||||||||||
9 | return false; | 9 | return false; | |||||||||||||||||
10 | if (this.totalWeight != that.totalWeight) |
| 10 | if (this.totalWeight != that.totalWeight) | ||||||||||||||||
11 | return false; | 11 | return false; | |||||||||||||||||
12 | if (this.gap != that.gap) |
| 12 | if (this.gap != that.gap) | ||||||||||||||||
13 | return false; | 13 | return false; | |||||||||||||||||
14 | return true; | 14 | return true; |
Row | Violation |
---|---|
1 | Super method call if(!super.equals(obj)) cannot be extracted from method |
2 | Super method call if(!super.equals(obj)) cannot be extracted from method |
3 | Expression that.subplots cannot be unified with expression that.subplots , because common superclass org.jfree.chart.plot.Plot does not declare member(s) private List#RAW subplots |
4 | Expression that.totalWeight cannot be unified with expression that.totalWeight , because common superclass org.jfree.chart.plot.Plot does not declare member(s) private int totalWeight |
5 | Expression that.gap cannot be unified with expression that.gap , because common superclass org.jfree.chart.plot.Plot does not declare member(s) private double gap |