File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/Tick.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/labels/BubbleXYItemLabelGenerator.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 11 | Number of AST nodes: 12 | |||
1 | if (obj instanceof Tick) {↵ | 1 | if (obj == this) {↵ | |
2 | Tick t = (Tick) obj;↵ | 2 | return true;↵ | |
3 | ↵ | 3 | ↵ | |
4 | ↵ | 4 | }↵ | |
5 | if (!ObjectUtilities.equal(this.text, t.text)) {↵ | 5 | if (!(obj instanceof BubbleXYItemLabelGenerator)) {↵ | |
6 | return false; ↵ | 6 | return false;↵ | |
7 | ↵ | |||
8 | }↵ | 7 | }↵ | |
9 | if (!ObjectUtilities.equal(this.textAnchor, t.textAnchor)) {↵ | 8 | if (!super.equals(obj)) {↵ | |
10 | return false;↵ | 9 | return false;↵ | |
11 | ↵ | 10 | }↵ | |
12 | }↵ | 11 | ↵ | |
13 | ↵ | 12 | BubbleXYItemLabelGenerator that = (BubbleXYItemLabelGenerator) obj;↵ | |
14 | if (!ObjectUtilities.equal(this.rotationAnchor, t.rotationAnchor)) {↵ | 13 | if (!ObjectUtilities.equal(this.zFormat, that.zFormat)) {↵ | |
15 | return false; ↵ | 14 | return false;↵ | |
16 | ↵ | |||
17 | }↵ | 15 | }↵ | |
18 | if (!(this.angle == t.angle)) {↵ | 16 | if (!ObjectUtilities.equal(this.zDateFormat, that.zDateFormat)) {↵ | |
19 | return false; ↵ | 17 | return false;↵ | |
20 | ↵ | |||
21 | }↵ | 18 | }↵ | |
22 | return true;↵ | 19 |
| |
23 | } | |||
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 51 |
Number of mapped statements | 8 |
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) | 2.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | Tick t = (Tick)obj; | | ||||||||||||||||||||||||||||||||||
| 7 | BubbleXYItemLabelGenerator that = (BubbleXYItemLabelGenerator)obj; | ||||||||||||||||||||||||||||||||||
5 | if (!ObjectUtilities.equal(this.text, t.text)) |
| 8 | if (!ObjectUtilities.equal(this.zFormat, that.zFormat)) | ||||||||||||||||||||||||||||||||
6 | return false; | 9 | return false; | |||||||||||||||||||||||||||||||||
7 | if (!ObjectUtilities.equal(this.textAnchor, t.textAnchor)) |
| 10 | if (!ObjectUtilities.equal(this.zDateFormat, that.zDateFormat)) | ||||||||||||||||||||||||||||||||
8 | return false; | 11 | return false; | |||||||||||||||||||||||||||||||||
9 | if (!ObjectUtilities.equal(this.rotationAnchor, t.rotationAnchor)) |
| 5 | if (!super.equals(obj)) | ||||||||||||||||||||||||||||||||
10 | return false; | 6 | return false; | |||||||||||||||||||||||||||||||||
11 | if (!(this.angle == t.angle)) |
| 3 | if (!(obj instanceof BubbleXYItemLabelGenerator)) | ||||||||||||||||||||||||||||||||
12 | return false; | 4 | return false; |
Row | Violation |
---|---|
1 | Type java.lang.String of variable this.text does not match with type java.text.NumberFormat of variable this.zFormat |
2 | Expression t.text cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression that.zFormat cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Type java.lang.String of variable t.text does not match with type java.text.NumberFormat of variable that.zFormat |
5 | Expression t.text cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression that.zFormat cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Type java.lang.String of variable t.text does not match with type java.text.NumberFormat of variable that.zFormat |
8 | Type org.jfree.ui.TextAnchor of variable this.textAnchor does not match with type java.text.DateFormat of variable this.zDateFormat |
9 | Expression t.textAnchor cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression that.zDateFormat cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Type org.jfree.ui.TextAnchor of variable t.textAnchor does not match with type java.text.DateFormat of variable that.zDateFormat |
12 | Expression t.textAnchor cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression that.zDateFormat cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Type org.jfree.ui.TextAnchor of variable t.textAnchor does not match with type java.text.DateFormat of variable that.zDateFormat |
15 | Expression ObjectUtilities.equal(this.rotationAnchor,t.rotationAnchor) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
16 | Super method call if(!super.equals(obj)) cannot be extracted from method |
17 | Expression this.angle == t.angle cannot be parameterized, because it has dependencies to/from statements that will be extracted |
18 | Not all possible execution flows end in a return statement |