File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYStepAreaRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/data/time/Millisecond.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 Millisecond)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | XYStepAreaRenderer that = (XYStepAreaRenderer) obj;↵ | 7 | Millisecond that = (Millisecond) obj;↵ | |
8 | if (this.showOutline != that.showOutline) {↵ | 8 | if (this.millisecond != that.millisecond) {↵ | |
9 | return false;↵ | 9 | return false;↵ | |
10 | }↵ | 10 | }↵ | |
11 | if (this.shapesVisible != that.shapesVisible) {↵ | 11 | if (this.second != that.second) {↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | }↵ | 13 | }↵ | |
14 | if (this.shapesFilled != that.shapesFilled) {↵ | 14 | if (this.minute != that.minute) {↵ | |
15 | return false;↵ | 15 | return false;↵ | |
16 | }↵ | 16 | }↵ | |
17 | if (this.plotArea != that.plotArea) {↵ | 17 | if (this.hour != that.hour) {↵ | |
18 | return false;↵ | 18 | return false;↵ | |
19 | }↵ | 19 | }↵ | |
20 | if (this.rangeBase != that.rangeBase) {↵ | 20 | if (!this.day.equals(that.day)) {↵ | |
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) | 5.4 |
Clones location | Clones are in different classes |
Number of node comparisons | 86 |
Number of mapped statements | 12 |
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.3 |
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 Millisecond)) | |||||||||||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||||||||||
| 5 | Millisecond that = (Millisecond)obj; | |||||||||||||||||||||||||||||
5 | XYStepAreaRenderer that = (XYStepAreaRenderer)obj; | | |||||||||||||||||||||||||||||
6 | if (this.showOutline != that.showOutline) |
| 6 | if (this.millisecond != that.millisecond) | |||||||||||||||||||||||||||
7 | return false; | 7 | return false; | ||||||||||||||||||||||||||||
8 | if (this.shapesVisible != that.shapesVisible) |
| 8 | if (this.second != that.second) | |||||||||||||||||||||||||||
9 | return false; | 9 | return false; | ||||||||||||||||||||||||||||
10 | if (this.shapesFilled != that.shapesFilled) |
| 10 | if (this.minute != that.minute) | |||||||||||||||||||||||||||
11 | return false; | 11 | return false; | ||||||||||||||||||||||||||||
12 | if (this.plotArea != that.plotArea) |
| 12 | if (this.hour != that.hour) | |||||||||||||||||||||||||||
13 | return false; | 13 | return false; |
Row | Violation |
---|---|
1 | Type org.jfree.chart.renderer.xy.XYStepAreaRenderer does not match with type org.jfree.data.time.Millisecond |
2 | Type boolean of variable this.showOutline does not match with type int of variable this.millisecond |
3 | Type boolean of variable that.showOutline does not match with type int of variable that.millisecond |
4 | Expression that.showOutline cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression that.millisecond 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 int of variable that.millisecond |
7 | Type boolean of variable this.shapesVisible does not match with type byte of variable this.second |
8 | Type boolean of variable that.shapesVisible does not match with type byte of variable that.second |
9 | Expression that.shapesVisible cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression that.second 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 byte of variable that.second |
12 | Type boolean of variable this.shapesFilled does not match with type byte of variable this.minute |
13 | Type boolean of variable that.shapesFilled does not match with type byte of variable that.minute |
14 | Expression that.shapesFilled cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression that.minute 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 byte of variable that.minute |
17 | Type boolean of variable this.plotArea does not match with type byte of variable this.hour |
18 | Type boolean of variable that.plotArea does not match with type byte of variable that.hour |
19 | Expression that.plotArea cannot be parameterized, because it has dependencies to/from statements that will be extracted |
20 | Expression that.hour 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 byte of variable that.hour |
22 | Not all possible execution flows end in a return statement |
23 | The refactoring of the clones is infeasible, because classes org.jfree.chart.renderer.xy.XYStepAreaRenderer and org.jfree.data.time.Millisecond do not have a common superclass |