File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/ArcDialFrame.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/ScatterRenderer.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 20 | Number of AST nodes: 20 | |||
1 | if (obj == this) {↵ | 1 | if (obj == this) {↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (!(obj instanceof ArcDialFrame)) {↵ | 4 | if (!(obj instanceof ScatterRenderer)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | ArcDialFrame that = (ArcDialFrame) obj;↵ | 7 | ScatterRenderer that = (ScatterRenderer) obj;↵ | |
8 | if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint↵ | 8 | if (!ObjectUtilities.equal(this.seriesShapesFilled,↵ | |
9 | )) {↵ | 9 | that.seriesShapesFilled)) {↵ | |
10 | return false;↵ | 10 | return false;↵ | |
11 | }↵ | 11 | }↵ | |
12 | if (!PaintUtilities.equal(this.foregroundPaint, that.foregroundPaint)) {↵ | 12 | if (this.baseShapesFilled != that.baseShapesFilled) {↵ | |
13 | return false;↵ | 13 | return false;↵ | |
14 | }↵ | 14 | }↵ | |
15 | if (this.startAngle != that.startAngle) {↵ | 15 | if (this.useFillPaint != that.useFillPaint) {↵ | |
16 | return false;↵ | 16 | return false;↵ | |
17 | }↵ | 17 | }↵ | |
18 | if (this.extent != that.extent) {↵ | 18 | if (this.drawOutlines != that.drawOutlines) {↵ | |
19 | return false;↵ | 19 | return false;↵ | |
20 | }↵ | 20 | }↵ | |
21 | if (this.innerRadius != that.innerRadius) {↵ | 21 | if (this.useOutlinePaint != that.useOutlinePaint) {↵ | |
22 | return false;↵ | 22 | return false;↵ | |
23 | }↵ | 23 | }↵ | |
24 | if (this.outerRadius != that.outerRadius) {↵ | 24 | if (this.useSeriesOffset != that.useSeriesOffset) {↵ | |
25 | return false;↵ | 25 | return false;↵ | |
26 | }↵ | 26 | }↵ | |
27 | if (!this.stroke.equals(that.stroke)) {↵ | 27 | if (this.itemMargin != that.itemMargin) {↵ | |
28 | return false;↵ | 28 | return false;↵ | |
29 | }↵ | 29 | }↵ | |
30 | return super.equals(obj); | 30 |
| |
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) | 8.6 |
Clones location | Clones are in different classes |
Number of node comparisons | 124 |
Number of mapped statements | 15 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 7.3 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (obj == this) | 1 | if (obj == this) | |||||||||||||||||||||||||||||||
2 | return true; | 2 | return true; | |||||||||||||||||||||||||||||||
3 | if (!(obj instanceof ArcDialFrame)) |
| 3 | if (!(obj instanceof ScatterRenderer)) | ||||||||||||||||||||||||||||||
4 | return false; | 4 | return false; | |||||||||||||||||||||||||||||||
5 | ArcDialFrame that = (ArcDialFrame)obj; |
| 5 | ScatterRenderer that = (ScatterRenderer)obj; | ||||||||||||||||||||||||||||||
6 | if (!PaintUtilities.equal(this.backgroundPaint, that.backgroundPaint)) |
| 6 | if (!ObjectUtilities.equal(this.seriesShapesFilled, that.seriesShapesFilled)) | ||||||||||||||||||||||||||||||
7 | return false; | 7 | return false; | |||||||||||||||||||||||||||||||
8 | if (!PaintUtilities.equal(this.foregroundPaint, that.foregroundPaint)) |
| | |||||||||||||||||||||||||||||||
9 | return false; |
| | |||||||||||||||||||||||||||||||
10 | if (this.startAngle != that.startAngle) |
| 10 | if (this.useFillPaint != that.useFillPaint) | ||||||||||||||||||||||||||||||
11 | return false; | 11 | return false; | |||||||||||||||||||||||||||||||
12 | if (this.extent != that.extent) |
| 12 | if (this.drawOutlines != that.drawOutlines) | ||||||||||||||||||||||||||||||
13 | return false; | 13 | return false; | |||||||||||||||||||||||||||||||
14 | if (this.innerRadius != that.innerRadius) |
| 14 | if (this.useOutlinePaint != that.useOutlinePaint) | ||||||||||||||||||||||||||||||
15 | return false; | 15 | return false; | |||||||||||||||||||||||||||||||
16 | if (this.outerRadius != that.outerRadius) |
| 8 | if (this.baseShapesFilled != that.baseShapesFilled) | ||||||||||||||||||||||||||||||
17 | return false; | 9 | return false; |
Row | Violation |
---|---|
1 | Type java.awt.Paint of variable this.backgroundPaint does not match with type org.jfree.util.BooleanList of variable this.seriesShapesFilled |
2 | Expression that.backgroundPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression that.seriesShapesFilled cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Type java.awt.Paint of variable that.backgroundPaint does not match with type org.jfree.util.BooleanList of variable that.seriesShapesFilled |
5 | Type org.jfree.util.PaintUtilities does not match with type org.jfree.util.ObjectUtilities |
6 | Unmatched statement if(!PaintUtilities.equal(this.foregroundPaint,that.foregroundPaint)) cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
7 | Unmatched return false; |
8 | Type double of variable this.startAngle does not match with type boolean of variable this.useFillPaint |
9 | Expression that.startAngle cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression that.useFillPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Type double of variable that.startAngle does not match with type boolean of variable that.useFillPaint |
12 | Type double of variable this.extent does not match with type boolean of variable this.drawOutlines |
13 | Expression that.extent cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression that.drawOutlines cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Type double of variable that.extent does not match with type boolean of variable that.drawOutlines |
16 | Type double of variable this.innerRadius does not match with type boolean of variable this.useOutlinePaint |
17 | Expression that.innerRadius cannot be parameterized, because it has dependencies to/from statements that will be extracted |
18 | Expression that.useOutlinePaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
19 | Type double of variable that.innerRadius does not match with type boolean of variable that.useOutlinePaint |
20 | Type double of variable this.outerRadius does not match with type boolean of variable this.baseShapesFilled |
21 | Expression that.outerRadius cannot be parameterized, because it has dependencies to/from statements that will be extracted |
22 | Expression that.baseShapesFilled cannot be parameterized, because it has dependencies to/from statements that will be extracted |
23 | Type double of variable that.outerRadius does not match with type boolean of variable that.baseShapesFilled |
24 | Clone fragment #1 returns variable that with type org.jfree.chart.plot.dial.ArcDialFrame , while Clone fragment #2 returns variable that with type org.jfree.chart.renderer.category.ScatterRenderer |
25 | Not all possible execution flows end in a return statement |
26 | The refactoring of the clones is infeasible, because classes org.jfree.chart.plot.dial.ArcDialFrame and org.jfree.chart.renderer.category.ScatterRenderer do not have a common superclass |