File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYStepAreaRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/data/xy/XYInterval.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 16 | Number of AST nodes: 16 | |||
1 | if (obj == this) {↵ | 1 | if (obj == this) {↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (!(obj instanceof XYStepAreaRenderer)) {↵ | 4 | if (!(obj instanceof XYInterval)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | XYStepAreaRenderer that = (XYStepAreaRenderer) obj;↵ | 7 | XYInterval that = (XYInterval) obj;↵ | |
8 | if (this.showOutline != that.showOutline) {↵ | 8 | if (this.xLow != that.xLow) {↵ | |
9 | return false;↵ | 9 | return false;↵ | |
10 | }↵ | 10 | }↵ | |
11 | if (this.shapesVisible != that.shapesVisible) {↵ | 11 | if (this.xHigh != that.xHigh) {↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | }↵ | 13 | }↵ | |
14 | if (this.shapesFilled != that.shapesFilled) {↵ | 14 | if (this.y != that.y) {↵ | |
15 | return false;↵ | 15 | return false;↵ | |
16 | }↵ | 16 | }↵ | |
17 | if (this.plotArea != that.plotArea) {↵ | 17 | if (this.yLow != that.yLow) {↵ | |
18 | return false;↵ | 18 | return false;↵ | |
19 | }↵ | 19 | }↵ | |
20 | if (this.rangeBase != that.rangeBase) {↵ | 20 | if (this.yHigh != that.yHigh) {↵ | |
21 | return false;↵ | 21 | return false;↵ | |
22 | }↵ | 22 | }↵ | |
23 | return super.equals(obj); | 23 | return true; | |
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.6 |
Clones location | Clones are in different classes |
Number of node comparisons | 104 |
Number of mapped statements | 15 |
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) | 5.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 XYStepAreaRenderer)) |
| 3 | if (!(obj instanceof XYInterval)) | |||||||||||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||||||||||
| 5 | XYInterval that = (XYInterval)obj; | |||||||||||||||||||||||||||||
5 | XYStepAreaRenderer that = (XYStepAreaRenderer)obj; | | |||||||||||||||||||||||||||||
6 | if (this.showOutline != that.showOutline) |
| 6 | if (this.xLow != that.xLow) | |||||||||||||||||||||||||||
7 | return false; | 7 | return false; | ||||||||||||||||||||||||||||
8 | if (this.shapesVisible != that.shapesVisible) |
| 8 | if (this.xHigh != that.xHigh) | |||||||||||||||||||||||||||
9 | return false; | 9 | return false; | ||||||||||||||||||||||||||||
10 | if (this.shapesFilled != that.shapesFilled) |
| 10 | if (this.y != that.y) | |||||||||||||||||||||||||||
11 | return false; | 11 | return false; | ||||||||||||||||||||||||||||
12 | if (this.plotArea != that.plotArea) |
| 12 | if (this.yLow != that.yLow) | |||||||||||||||||||||||||||
13 | return false; | 13 | return false; | ||||||||||||||||||||||||||||
14 | if (this.rangeBase != that.rangeBase) |
| 14 | if (this.yHigh != that.yHigh) | |||||||||||||||||||||||||||
15 | return false; | 15 | return false; | ||||||||||||||||||||||||||||
16 | return super.equals(obj); |
| 16 | return true; |
Row | Violation |
---|---|
1 | Type org.jfree.chart.renderer.xy.XYStepAreaRenderer does not match with type org.jfree.data.xy.XYInterval |
2 | Type boolean of variable this.showOutline does not match with type double of variable this.xLow |
3 | Type boolean of variable that.showOutline does not match with type double of variable that.xLow |
4 | Expression that.showOutline cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression that.xLow cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type boolean of variable that.showOutline does not match with type double of variable that.xLow |
7 | Type boolean of variable this.shapesVisible does not match with type double of variable this.xHigh |
8 | Type boolean of variable that.shapesVisible does not match with type double of variable that.xHigh |
9 | Expression that.shapesVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression that.xHigh cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Type boolean of variable that.shapesVisible does not match with type double of variable that.xHigh |
12 | Type boolean of variable this.shapesFilled does not match with type double of variable this.y |
13 | Type boolean of variable that.shapesFilled does not match with type double of variable that.y |
14 | Expression that.shapesFilled cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression that.y cannot be parameterized, because it has dependencies to/from statements that will be extracted |
16 | Type boolean of variable that.shapesFilled does not match with type double of variable that.y |
17 | Type boolean of variable this.plotArea does not match with type double of variable this.yLow |
18 | Type boolean of variable that.plotArea does not match with type double of variable that.yLow |
19 | Expression that.plotArea cannot be parameterized, because it has dependencies to/from statements that will be extracted |
20 | Expression that.yLow cannot be parameterized, because it has dependencies to/from statements that will be extracted |
21 | Type boolean of variable that.plotArea does not match with type double of variable that.yLow |
22 | Type double of variable that.rangeBase does not match with type double of variable that.yHigh |
23 | Expression that.rangeBase cannot be parameterized, because it has dependencies to/from statements that will be extracted |
24 | Expression that.yHigh cannot be parameterized, because it has dependencies to/from statements that will be extracted |
25 | Super method call return super.equals(obj); cannot be extracted from method |
26 | The refactoring of the clones is infeasible, because classes org.jfree.chart.renderer.xy.XYStepAreaRenderer and org.jfree.data.xy.XYInterval do not have a common superclass |