File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/MarkerAxisBand.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/StandardDialRange.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 18 | Number of AST nodes: 18 | |||
1 | if (obj == this) {↵ | 1 | if (obj == this) {↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (!(obj instanceof MarkerAxisBand)) {↵ | 4 | if (!(obj instanceof StandardDialRange)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | MarkerAxisBand that = (MarkerAxisBand) obj;↵ | 7 | ↵ | |
8 | if (this.topOuterGap != that.topOuterGap↵ | 8 | StandardDialRange that = (StandardDialRange) obj;↵ | |
9 | ) {↵ | 9 | if (this.scaleIndex != that.scaleIndex) {↵ | |
10 | return false;↵ | 10 | return false;↵ | |
11 | }↵ | 11 | }↵ | |
12 | if (this.topInnerGap != that.topInnerGap) {↵ | 12 | if (this.lowerBound != that.lowerBound) {↵ | |
13 | return false;↵ | 13 | return false;↵ | |
14 | }↵ | 14 | }↵ | |
15 | if (this.bottomInnerGap != that.bottomInnerGap) {↵ | 15 | if (this.upperBound != that.upperBound) {↵ | |
16 | return false;↵ | 16 | return false;↵ | |
17 | }↵ | 17 | }↵ | |
18 | if (this.bottomOuterGap != that.bottomOuterGap) {↵ | 18 | if (!PaintUtilities.equal(this.paint, that.paint)) {↵ | |
19 | return false;↵ | 19 | return false;↵ | |
20 | }↵ | 20 | }↵ | |
21 | if (!ObjectUtilities.equal(this.font, that.font)) {↵ | 21 | if (this.innerRadius != that.innerRadius) {↵ | |
22 | return false;↵ | 22 | return false;↵ | |
23 | }↵ | 23 | }↵ | |
24 | if (!ObjectUtilities.equal(this.markers, that.markers)) {↵ | 24 | if (this.outerRadius != that.outerRadius) {↵ | |
25 | return false;↵ | 25 | return false;↵ | |
26 | }↵ | 26 | }↵ | |
27 | return true; | 27 | return super.equals(obj); | |
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) | 4.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 107 |
Number of mapped statements | 14 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 4.9 |
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 MarkerAxisBand)) |
| 3 | if (!(obj instanceof StandardDialRange)) | |||||||||||||||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||||||||||||||
| 5 | StandardDialRange that = (StandardDialRange)obj; | |||||||||||||||||||||||||||||||||
5 | MarkerAxisBand that = (MarkerAxisBand)obj; | | |||||||||||||||||||||||||||||||||
6 | if (this.topOuterGap != that.topOuterGap) |
| 8 | if (this.lowerBound != that.lowerBound) | |||||||||||||||||||||||||||||||
7 | return false; | 9 | return false; | ||||||||||||||||||||||||||||||||
8 | if (this.topInnerGap != that.topInnerGap) |
| 10 | if (this.upperBound != that.upperBound) | |||||||||||||||||||||||||||||||
9 | return false; | 11 | return false; | ||||||||||||||||||||||||||||||||
10 | if (this.bottomInnerGap != that.bottomInnerGap) |
| 14 | if (this.innerRadius != that.innerRadius) | |||||||||||||||||||||||||||||||
11 | return false; | 15 | return false; | ||||||||||||||||||||||||||||||||
12 | if (this.bottomOuterGap != that.bottomOuterGap) |
| 6 | if (this.scaleIndex != that.scaleIndex) | |||||||||||||||||||||||||||||||
13 | return false; | 7 | return false; | ||||||||||||||||||||||||||||||||
14 | if (!ObjectUtilities.equal(this.font, that.font)) |
| 12 | if (!PaintUtilities.equal(this.paint, that.paint)) | |||||||||||||||||||||||||||||||
15 | return false; | 13 | return false; |
Row | Violation |
---|---|
1 | Type org.jfree.chart.axis.MarkerAxisBand does not match with type org.jfree.chart.plot.dial.StandardDialRange |
2 | Type double of variable that.topOuterGap does not match with type double of variable that.lowerBound |
3 | Expression that.topOuterGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression that.lowerBound cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type double of variable that.topInnerGap does not match with type double of variable that.upperBound |
6 | Expression that.topInnerGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression that.upperBound cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Type double of variable that.bottomInnerGap does not match with type double of variable that.innerRadius |
9 | Expression that.bottomInnerGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression that.innerRadius cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Type double of variable this.bottomOuterGap does not match with type int of variable this.scaleIndex |
12 | Type double of variable that.bottomOuterGap does not match with type int of variable that.scaleIndex |
13 | Expression that.bottomOuterGap cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression that.scaleIndex cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Type double of variable that.bottomOuterGap does not match with type int of variable that.scaleIndex |
16 | Type java.awt.Font of variable this.font does not match with type java.awt.Paint of variable this.paint |
17 | Type java.awt.Font of variable that.font does not match with type java.awt.Paint of variable that.paint |
18 | Expression that.font cannot be parameterized, because it has dependencies to/from statements that will be extracted |
19 | Expression that.paint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
20 | Type java.awt.Font of variable that.font does not match with type java.awt.Paint of variable that.paint |
21 | Type org.jfree.util.ObjectUtilities does not match with type org.jfree.util.PaintUtilities |
22 | Not all possible execution flows end in a return statement |
23 | The refactoring of the clones is infeasible, because classes org.jfree.chart.axis.MarkerAxisBand and org.jfree.chart.plot.dial.StandardDialRange do not have a common superclass |