File path: /jfreechart-1.0.10/src/org/jfree/chart/ChartRenderingInfo.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/ExtendedCategoryAxis.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 12 | Number of AST nodes: 12 | |||
1 | if (obj == this) {↵ | 1 | if (obj == this) {↵ | |
2 | return true; ↵ | 2 | return true;↵ | |
3 | }↵ | 3 | }↵ | |
4 | if (!(obj instanceof ChartRenderingInfo)) {↵ | 4 | if (!(obj instanceof ExtendedCategoryAxis)) {↵ | |
5 | return false;↵ | 5 | return false;↵ | |
6 | }↵ | 6 | }↵ | |
7 | ChartRenderingInfo that = (ChartRenderingInfo) obj;↵ | 7 | ExtendedCategoryAxis that = (ExtendedCategoryAxis) obj;↵ | |
8 | if (!ObjectUtilities.equal(this.chartArea, that.chartArea)) {↵ | 8 | if (!this.sublabelFont.equals(that.sublabelFont)) {↵ | |
9 | return false; ↵ | 9 | return false;↵ | |
10 | }↵ | 10 | }↵ | |
11 | if (!ObjectUtilities.equal(this.plotInfo, that.plotInfo)) {↵ | 11 | if (!PaintUtilities.equal(this.sublabelPaint, that.sublabelPaint)) {↵ | |
12 | return false;↵ | 12 | return false;↵ | |
13 | }↵ | 13 | }↵ | |
14 | if (!ObjectUtilities.equal(this.entities, that.entities)) {↵ | 14 | if (!this.sublabels.equals(that.sublabels)) {↵ | |
15 | return false;↵ | 15 | return false;↵ | |
16 | }↵ | 16 | }↵ | |
17 | return true; | 17 | return super.equals(obj); | |
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) | 1.9 |
Clones location | Clones are in different classes |
Number of node comparisons | 62 |
Number of mapped statements | 11 |
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.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 ChartRenderingInfo)) |
| 3 | if (!(obj instanceof ExtendedCategoryAxis)) | |||||||||||||||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||||||||||||||
| 5 | ExtendedCategoryAxis that = (ExtendedCategoryAxis)obj; | |||||||||||||||||||||||||||||||||
5 | ChartRenderingInfo that = (ChartRenderingInfo)obj; | | |||||||||||||||||||||||||||||||||
6 | if (!ObjectUtilities.equal(this.chartArea, that.chartArea)) |
| 8 | if (!PaintUtilities.equal(this.sublabelPaint, that.sublabelPaint)) | |||||||||||||||||||||||||||||||
7 | return false; | 9 | return false; | ||||||||||||||||||||||||||||||||
8 | if (!ObjectUtilities.equal(this.plotInfo, that.plotInfo)) |
| 6 | if (!this.sublabelFont.equals(that.sublabelFont)) | |||||||||||||||||||||||||||||||
9 | return false; | 7 | return false; | ||||||||||||||||||||||||||||||||
10 | if (!ObjectUtilities.equal(this.entities, that.entities)) |
| 10 | if (!this.sublabels.equals(that.sublabels)) | |||||||||||||||||||||||||||||||
11 | return false; | 11 | return false; | ||||||||||||||||||||||||||||||||
12 | return true; |
| 12 | return super.equals(obj); |
Row | Violation |
---|---|
1 | Type org.jfree.chart.ChartRenderingInfo does not match with type org.jfree.chart.axis.ExtendedCategoryAxis |
2 | Type java.awt.geom.Rectangle2D of variable this.chartArea does not match with type java.awt.Paint of variable this.sublabelPaint |
3 | Type java.awt.geom.Rectangle2D of variable that.chartArea does not match with type java.awt.Paint of variable that.sublabelPaint |
4 | Expression that.chartArea cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression that.sublabelPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type java.awt.geom.Rectangle2D of variable that.chartArea does not match with type java.awt.Paint of variable that.sublabelPaint |
7 | Type org.jfree.util.ObjectUtilities does not match with type org.jfree.util.PaintUtilities |
8 | Expression ObjectUtilities.equal(this.plotInfo,that.plotInfo) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression this.sublabelFont.equals(that.sublabelFont) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression ObjectUtilities.equal(this.entities,that.entities) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression this.sublabels.equals(that.sublabels) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Super method call return super.equals(obj); cannot be extracted from method |
13 | The refactoring of the clones is infeasible, because classes org.jfree.chart.ChartRenderingInfo and org.jfree.chart.axis.ExtendedCategoryAxis do not have a common superclass |