File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/MultiplePiePlot.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/HighLowRenderer.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 18 | Number of AST nodes: 18 | |||
1 | if (obj == this) {↵ | 1 | if (this == obj) {↵ | |
2 | return true;↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (!(obj instanceof MultiplePiePlot)) {↵ | 4 | if (!(obj instanceof HighLowRenderer)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | MultiplePiePlot that = (MultiplePiePlot) obj;↵ | 7 | HighLowRenderer that = (HighLowRenderer) obj;↵ | |
8 | if (this.dataExtractOrder != that.dataExtractOrder) {↵ | 8 | if (this.drawOpenTicks != that.drawOpenTicks) {↵ | |
9 | return false;↵ | 9 | return false;↵ | |
10 | }↵ | 10 | }↵ | |
11 | if (this.limit != that.limit) {↵ | 11 | if (this.drawCloseTicks != that.drawCloseTicks) {↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | }↵ | 13 | }↵ | |
14 | if (!this.aggregatedItemsKey.equals(that.aggregatedItemsKey)) {↵ | 14 | if (!PaintUtilities.equal(this.openTickPaint, that.openTickPaint)) {↵ | |
15 | return false;↵ | 15 | return false;↵ | |
16 | }↵ | 16 | }↵ | |
17 | if (!PaintUtilities.equal(this.aggregatedItemsPaint,↵ | 17 | if (!PaintUtilities.equal(this.↵ | |
18 | that.aggregatedItemsPaint)) {↵ | 18 | closeTickPaint, that.closeTickPaint)) {↵ | |
19 | return false;↵ | 19 | return false;↵ | |
20 | }↵ | 20 | }↵ | |
21 | if (!ObjectUtilities.equal(this.pieChart, that.pieChart)) {↵ | 21 | if (this.tickLength != that.tickLength) {↵ | |
22 | return false;↵ | 22 | return false;↵ | |
23 | }↵ | 23 | }↵ | |
24 | if (!super.equals(obj)) {↵ | 24 | if (!super.equals(obj)) {↵ | |
25 | return false;↵ | 25 | return false;↵ | |
26 | }↵ | 26 | }↵ | |
27 | return true; | 27 |
| |
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) | 7.9 |
Clones location | Clones are in different classes |
Number of node comparisons | 110 |
Number of mapped statements | 13 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 7.1 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (!(obj instanceof MultiplePiePlot)) |
| 3 | if (!(obj instanceof HighLowRenderer)) | ||||||||||||||||||||||||||||||
4 | return false; | 4 | return false; | |||||||||||||||||||||||||||||||
5 | MultiplePiePlot that = (MultiplePiePlot)obj; |
| 5 | HighLowRenderer that = (HighLowRenderer)obj; | ||||||||||||||||||||||||||||||
6 | if (this.dataExtractOrder != that.dataExtractOrder) |
| 6 | if (this.drawOpenTicks != that.drawOpenTicks) | ||||||||||||||||||||||||||||||
7 | return false; | 7 | return false; | |||||||||||||||||||||||||||||||
|
| 8 | if (this.drawCloseTicks != that.drawCloseTicks) | |||||||||||||||||||||||||||||||
|
| 9 | return false; | |||||||||||||||||||||||||||||||
8 | if (this.limit != that.limit) |
| 14 | if (this.tickLength != that.tickLength) | ||||||||||||||||||||||||||||||
9 | return false; | 15 | return false; | |||||||||||||||||||||||||||||||
10 | if (!this.aggregatedItemsKey.equals(that.aggregatedItemsKey)) |
| 16 | if (!super.equals(obj)) | ||||||||||||||||||||||||||||||
11 | return false; | 17 | return false; | |||||||||||||||||||||||||||||||
12 | if (!PaintUtilities.equal(this.aggregatedItemsPaint, that.aggregatedItemsPaint)) |
| 12 | if (!PaintUtilities.equal(this.closeTickPaint, that.closeTickPaint)) | ||||||||||||||||||||||||||||||
13 | return false; | 13 | return false; | |||||||||||||||||||||||||||||||
14 | if (!ObjectUtilities.equal(this.pieChart, that.pieChart)) |
| 10 | if (!PaintUtilities.equal(this.openTickPaint, that.openTickPaint)) | ||||||||||||||||||||||||||||||
15 | return false; | 11 | return false; |
Row | Violation |
---|---|
1 | Type org.jfree.util.TableOrder of variable this.dataExtractOrder does not match with type boolean of variable this.drawOpenTicks |
2 | Expression that.dataExtractOrder cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression that.drawOpenTicks cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Type org.jfree.util.TableOrder of variable that.dataExtractOrder does not match with type boolean of variable that.drawOpenTicks |
5 | Unmatched statement if(this.drawCloseTicks != that.drawCloseTicks) cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched return false; |
7 | Expression that.limit cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression that.tickLength cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression this.aggregatedItemsKey.equals(that.aggregatedItemsKey) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Super method call if(!super.equals(obj)) cannot be extracted from method |
11 | Expression that.aggregatedItemsPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression that.closeTickPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Type org.jfree.chart.JFreeChart of variable this.pieChart does not match with type java.awt.Paint of variable this.openTickPaint |
14 | Expression that.pieChart cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression that.openTickPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
16 | Type org.jfree.chart.JFreeChart of variable that.pieChart does not match with type java.awt.Paint of variable that.openTickPaint |
17 | Type org.jfree.util.ObjectUtilities does not match with type org.jfree.util.PaintUtilities |
18 | Clone fragment #1 returns variables , while Clone fragment #2 returns variables that |
19 | Not all possible execution flows end in a return statement |