File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/SymbolAxis.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/DialCap.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 SymbolAxis)) {↵ | 4 | if (!(obj instanceof DialCap)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | SymbolAxis that = (SymbolAxis) obj;↵ | 7 | DialCap that = (DialCap) obj;↵ | |
8 | if (!this.symbols.equals(that.symbols)) {↵ | 8 | if (this.radius != that.radius) {↵ | |
9 | return false;↵ | 9 | return false;↵ | |
10 | }↵ | 10 | }↵ | |
11 | if (this.gridBandsVisible != that.gridBandsVisible) {↵ | 11 | if (!PaintUtilities.equal(this.fillPaint, that.fillPaint)) {↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | }↵ | 13 | }↵ | |
14 | if (!PaintUtilities.equal(this.gridBandPaint, that.gridBandPaint)) {↵ | 14 | if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) {↵ | |
15 | return false;↵ | 15 | return false;↵ | |
16 | }↵ | 16 | }↵ | |
17 | if (!PaintUtilities.equal(this.gridBandAlternatePaint, ↵ | 17 | if (!↵ | |
18 | that.gridBandAlternatePaint)) {↵ | 18 | this.outlineStroke.equals(that.outlineStroke)) {↵ | |
19 | return false;↵ | 19 | return false;↵ | |
20 | }↵ | 20 | }↵ | |
21 | return super.equals(obj); | 21 |
| |
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) | 3.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 76 |
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) | 4.7 |
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 SymbolAxis)) |
| 3 | if (!(obj instanceof DialCap)) | ||||||||||||||||||||||||||
4 | return false; | 4 | return false; | |||||||||||||||||||||||||||
5 | SymbolAxis that = (SymbolAxis)obj; |
| 5 | DialCap that = (DialCap)obj; | ||||||||||||||||||||||||||
6 | if (!this.symbols.equals(that.symbols)) |
| 12 | if (!this.outlineStroke.equals(that.outlineStroke)) | ||||||||||||||||||||||||||
7 | return false; | 13 | return false; | |||||||||||||||||||||||||||
8 | if (this.gridBandsVisible != that.gridBandsVisible) |
| 6 | if (this.radius != that.radius) | ||||||||||||||||||||||||||
9 | return false; | 7 | return false; | |||||||||||||||||||||||||||
10 | if (!PaintUtilities.equal(this.gridBandPaint, that.gridBandPaint)) |
| 10 | if (!PaintUtilities.equal(this.outlinePaint, that.outlinePaint)) | ||||||||||||||||||||||||||
11 | return false; | 11 | return false; | |||||||||||||||||||||||||||
12 | if (!PaintUtilities.equal(this.gridBandAlternatePaint, that.gridBandAlternatePaint)) |
| 8 | if (!PaintUtilities.equal(this.fillPaint, that.fillPaint)) | ||||||||||||||||||||||||||
13 | return false; | 9 | return false; | |||||||||||||||||||||||||||
14 | return super.equals(obj); |
| 14 | return super.equals(obj); |
Row | Violation |
---|---|
1 | Expression that.symbols cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression that.outlineStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Type java.util.List of variable that.symbols does not match with type java.awt.Stroke of variable that.outlineStroke |
4 | Type java.util.List of variable this.symbols does not match with type java.awt.Stroke of variable this.outlineStroke |
5 | Type boolean of variable this.gridBandsVisible does not match with type double of variable this.radius |
6 | Expression that.gridBandsVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression that.radius cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Type boolean of variable that.gridBandsVisible does not match with type double of variable that.radius |
9 | Expression that.gridBandPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression that.outlinePaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression that.gridBandAlternatePaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression that.fillPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Super method call return super.equals(obj); cannot be extracted from method |
14 | Super method call return super.equals(obj); cannot be extracted from method |
15 | The refactoring of the clones is infeasible, because classes org.jfree.chart.axis.SymbolAxis and org.jfree.chart.plot.dial.DialCap do not have a common superclass |