File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/Tick.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/xy/XYLine3DRenderer.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 XYLine3DRenderer)) {↵ | |
6 | return false; ↵ | 6 | return false;↵ | |
7 | ↵ | 7 | }↵ | |
8 | }↵ | 8 | ↵ | |
9 | if (!ObjectUtilities.equal(this.textAnchor, t.textAnchor)↵ | 9 | XYLine3DRenderer that = (XYLine3DRenderer) obj;↵ | |
10 | ) {↵ | 10 | if (this.xOffset != that.xOffset) {↵ | |
11 | return false; ↵ | 11 | return false;↵ | |
12 | ↵ | |||
13 | }↵ | 12 | }↵ | |
14 | if (!ObjectUtilities.equal(this.rotationAnchor, t.rotationAnchor)) {↵ | 13 | if (this.yOffset != that.yOffset) {↵ | |
15 | return false; ↵ | 14 | return false;↵ | |
16 | ↵ | |||
17 | }↵ | 15 | }↵ | |
18 | if (!(this.angle == t.angle)) {↵ | 16 | if (!PaintUtilities.equal(this.wallPaint, that.wallPaint)) {↵ | |
19 | return false; ↵ | 17 | return false;↵ | |
20 | ↵ | |||
21 | }↵ | 18 | }↵ | |
22 | return true;↵ | 19 | return ↵ | |
23 | } | 20 |
| |
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.5 |
Clones location | Clones are in different classes |
Number of node comparisons | 30 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 5 |
Time elapsed for statement mapping (ms) | 1.6 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | Tick t = (Tick)obj; | | ||||||||||||||||||||||||||||||||||||||
| 5 | XYLine3DRenderer that = (XYLine3DRenderer)obj; | ||||||||||||||||||||||||||||||||||||||
| 6 | if (this.xOffset != that.xOffset) | ||||||||||||||||||||||||||||||||||||||
|
| 7 | return false; | |||||||||||||||||||||||||||||||||||||
| 8 | if (this.yOffset != that.yOffset) | ||||||||||||||||||||||||||||||||||||||
|
| 9 | return false; | |||||||||||||||||||||||||||||||||||||
5 | if (!ObjectUtilities.equal(this.text, t.text)) |
| 10 | if (!PaintUtilities.equal(this.wallPaint, that.wallPaint)) | ||||||||||||||||||||||||||||||||||||
6 | return false; | 11 | return false; | |||||||||||||||||||||||||||||||||||||
7 | if (!ObjectUtilities.equal(this.textAnchor, t.textAnchor)) |
| 3 | if (!(obj instanceof XYLine3DRenderer)) | ||||||||||||||||||||||||||||||||||||
8 | return false; | 4 | return false; |
Row | Violation |
---|---|
1 | Unmatched return false; |
2 | Unmatched return false; |
3 | Type java.lang.String of variable this.text does not match with type java.awt.Paint of variable this.wallPaint |
4 | Expression t.text cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression that.wallPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type java.lang.String of variable t.text does not match with type java.awt.Paint of variable that.wallPaint |
7 | Expression t.text cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression that.wallPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Type java.lang.String of variable t.text does not match with type java.awt.Paint of variable that.wallPaint |
10 | Type org.jfree.util.ObjectUtilities does not match with type org.jfree.util.PaintUtilities |
11 | Expression ObjectUtilities.equal(this.textAnchor,t.textAnchor) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Not all possible execution flows end in a return statement |