File path: /jfreechart-1.0.10/src/org/jfree/chart/block/LineBorder.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/entity/ChartEntity.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 LineBorder)) {↵ | 4 | if (!(obj instanceof ChartEntity)) {↵ | |
5 | return false; ↵ | 5 | return false; ↵ | |
6 | }↵ | 6 | }↵ | |
7 | LineBorder that = (LineBorder) obj;↵ | 7 | ChartEntity that = (ChartEntity) obj;↵ | |
8 | if (!PaintUtilities.equal(this.paint, that.paint)) {↵ | 8 | if (!this.area.equals(that.area)) {↵ | |
9 | return false;↵ | 9 | return false; ↵ | |
10 | }↵ | 10 | }↵ | |
11 | if (!ObjectUtilities.equal(this.stroke, that.stroke)) {↵ | 11 | if (!ObjectUtilities.equal(this.toolTipText, that.toolTipText)) {↵ | |
12 | return false;↵ | 12 | return false; ↵ | |
13 | }↵ | 13 | }↵ | |
14 | if (!this.insets.equals(that.insets)) {↵ | 14 | if (!ObjectUtilities.equal(this.urlText, that.urlText)) {↵ | |
15 | return false;↵ | 15 | return false; ↵ | |
16 | }↵ | 16 | }↵ | |
17 | return true; | 17 |
| |
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) | 2.0 |
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) | 3.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 LineBorder)) |
| 3 | if (!(obj instanceof ChartEntity)) | |||||||||||||||||||||||||||||||
4 | return false; | 4 | return false; | ||||||||||||||||||||||||||||||||
| 5 | ChartEntity that = (ChartEntity)obj; | |||||||||||||||||||||||||||||||||
5 | LineBorder that = (LineBorder)obj; | | |||||||||||||||||||||||||||||||||
6 | if (!PaintUtilities.equal(this.paint, that.paint)) |
| 8 | if (!ObjectUtilities.equal(this.toolTipText, that.toolTipText)) | |||||||||||||||||||||||||||||||
7 | return false; | 9 | return false; | ||||||||||||||||||||||||||||||||
8 | if (!ObjectUtilities.equal(this.stroke, that.stroke)) |
| 10 | if (!ObjectUtilities.equal(this.urlText, that.urlText)) | |||||||||||||||||||||||||||||||
9 | return false; | 11 | return false; | ||||||||||||||||||||||||||||||||
10 | if (!this.insets.equals(that.insets)) |
| 6 | if (!this.area.equals(that.area)) | |||||||||||||||||||||||||||||||
11 | return false; | 7 | return false; | ||||||||||||||||||||||||||||||||
12 | return true; | 12 | return true; |
Row | Violation |
---|---|
1 | Type org.jfree.chart.block.LineBorder does not match with type org.jfree.chart.entity.ChartEntity |
2 | Type java.awt.Paint of variable this.paint does not match with type java.lang.String of variable this.toolTipText |
3 | Type java.awt.Paint of variable that.paint does not match with type java.lang.String of variable that.toolTipText |
4 | Expression that.paint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression that.toolTipText cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type java.awt.Paint of variable that.paint does not match with type java.lang.String of variable that.toolTipText |
7 | Type org.jfree.util.PaintUtilities does not match with type org.jfree.util.ObjectUtilities |
8 | Type java.awt.Stroke of variable this.stroke does not match with type java.lang.String of variable this.urlText |
9 | Type java.awt.Stroke of variable that.stroke does not match with type java.lang.String of variable that.urlText |
10 | Expression that.stroke cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression that.urlText cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Type java.awt.Stroke of variable that.stroke does not match with type java.lang.String of variable that.urlText |
13 | Type org.jfree.ui.RectangleInsets of variable that.insets does not match with type java.awt.Shape of variable that.area |
14 | Expression that.insets cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | Expression that.area cannot be parameterized, because it has dependencies to/from statements that will be extracted |
16 | Type org.jfree.ui.RectangleInsets of variable that.insets does not match with type java.awt.Shape of variable that.area |
17 | Type org.jfree.ui.RectangleInsets of variable this.insets does not match with type java.awt.Shape of variable this.area |