File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/BoxAndWhiskerRenderer.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYAreaRenderer.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 BoxAndWhiskerRenderer)) {↵ | 4 | if (!(obj instanceof XYAreaRenderer)) {↵ | |
5 | return false;↵ | 5 | return false; ↵ | |
6 | }↵ | 6 | }↵ | |
7 | if (!super.equals(obj)↵ | 7 | XYAreaRenderer that = (XYAreaRenderer) obj;↵ | |
8 | ) {↵ | 8 | if (this.plotArea != that.plotArea) {↵ | |
9 | return false;↵ | 9 | return false;↵ | |
10 | }↵ | 10 | ↵ | |
11 | BoxAndWhiskerRenderer that = (BoxAndWhiskerRenderer) obj;↵ | 11 | ↵ | |
12 | if (!PaintUtilities.equal(this.artifactPaint, that.artifactPaint)↵ | 12 | }↵ | |
13 | ) {↵ | 13 | if (this.plotLines != that.plotLines) {↵ | |
14 | return false;↵ | 14 | return false; ↵ | |
15 | }↵ | 15 | }↵ | |
16 | if (this.fillBox != that.fillBox) {↵ | 16 | if (this.plotShapes != that.plotShapes) {↵ | |
17 | return false;↵ | 17 | return false; ↵ | |
18 | }↵ | 18 | }↵ | |
19 | if (this.itemMargin != that.itemMargin) {↵ | 19 | if (this.showOutline != that.showOutline) {↵ | |
20 | return false;↵ | 20 | return false; ↵ | |
21 | }↵ | 21 | }↵ | |
22 | if (this.maximumBarWidth != that.maximumBarWidth) {↵ | 22 | if (!ShapeUtilities.equal(this.legendArea, that.legendArea)) {↵ | |
23 | return false;↵ | 23 | return false; ↵ | |
24 | }↵ | 24 | }↵ | |
25 | return true; | 25 |
| |
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.6 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 89 |
Number of mapped statements | 12 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 5.6 |
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 BoxAndWhiskerRenderer)) |
| 3 | if (!(obj instanceof XYAreaRenderer)) | ||||||||||||||||||||||||||
4 | return false; | 4 | return false; | |||||||||||||||||||||||||||
| 5 | XYAreaRenderer that = (XYAreaRenderer)obj; | ||||||||||||||||||||||||||||
| 6 | if (this.plotArea != that.plotArea) | ||||||||||||||||||||||||||||
|
| 7 | return false; | |||||||||||||||||||||||||||
5 | if (!super.equals(obj)) |
| 14 | if (!ShapeUtilities.equal(this.legendArea, that.legendArea)) | ||||||||||||||||||||||||||
6 | return false; | 15 | return false; | |||||||||||||||||||||||||||
7 | BoxAndWhiskerRenderer that = (BoxAndWhiskerRenderer)obj; | | ||||||||||||||||||||||||||||
8 | if (!PaintUtilities.equal(this.artifactPaint, that.artifactPaint)) | | ||||||||||||||||||||||||||||
9 | return false; |
| | |||||||||||||||||||||||||||
10 | if (this.fillBox != that.fillBox) |
| 10 | if (this.plotShapes != that.plotShapes) | ||||||||||||||||||||||||||
11 | return false; | 11 | return false; | |||||||||||||||||||||||||||
12 | if (this.itemMargin != that.itemMargin) |
| 12 | if (this.showOutline != that.showOutline) | ||||||||||||||||||||||||||
13 | return false; | 13 | return false; | |||||||||||||||||||||||||||
14 | if (this.maximumBarWidth != that.maximumBarWidth) |
| 8 | if (this.plotLines != that.plotLines) | ||||||||||||||||||||||||||
15 | return false; | 9 | return false; |
Row | Violation |
---|---|
1 | Unmatched return false; |
2 | Expression ShapeUtilities.equal(this.legendArea,that.legendArea) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Super method call if(!super.equals(obj)) cannot be extracted from method |
4 | Unmatched return false; |
5 | Expression that.fillBox cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression that.plotShapes cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Type double of variable this.itemMargin does not match with type boolean of variable this.showOutline |
8 | Expression that.itemMargin cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression that.showOutline cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Type double of variable that.itemMargin does not match with type boolean of variable that.showOutline |
11 | Type double of variable this.maximumBarWidth does not match with type boolean of variable this.plotLines |
12 | Expression that.maximumBarWidth cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression that.plotLines cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Type double of variable that.maximumBarWidth does not match with type boolean of variable that.plotLines |
15 | Not all possible execution flows end in a return statement |