File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/CategoryTick.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StatisticalBarRenderer.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 10 | |||
1 | if (obj instanceof CategoryTick && super.equals(obj)) {↵ | 1 | if (obj ↵ | |
2 | CategoryTick that = (CategoryTick) obj; ↵ | 2 | == this) {↵ | |
3 | return true;↵ | |||
3 | ↵ | 4 | }↵ | |
4 | if (!ObjectUtilities.equal(this.category, that.category)) {↵ | 5 | if (!(obj instanceof StatisticalBarRenderer)) {↵ | |
5 | return false;↵ | 6 | return false;↵ | |
6 | ↵ | 7 | }↵ | |
7 | }↵ | 8 | ↵ | |
8 | ↵ | 9 | StatisticalBarRenderer that = (StatisticalBarRenderer) obj;↵ | |
9 | if (!ObjectUtilities.equal(this.label, that.label↵ | 10 | if (!PaintUtilities.equal(this.errorIndicatorPaint,↵ | |
10 | )) {↵ | 11 | that.errorIndicatorPaint)) {↵ | |
11 | return false; ↵ | 12 | return false;↵ | |
12 | ↵ | |||
13 | }↵ | 13 | }↵ | |
14 | if (!ObjectUtilities.equal(this.labelAnchor, that.labelAnchor↵ | 14 | if (!ObjectUtilities.equal(this.errorIndicatorStroke,↵ | |
15 | )) {↵ | 15 | that.errorIndicatorStroke)) {↵ | |
16 | return false; ↵ | 16 | return false;↵ | |
17 | ↵ | |||
18 | }↵ | 17 | }↵ | |
19 | return true;↵ | 18 | return ↵ | |
20 | } | 19 |
| |
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 | 31 |
Number of mapped statements | 6 |
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.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | CategoryTick that = (CategoryTick)obj; | | |||||||||||||||||||||||||||||||||
| 5 | StatisticalBarRenderer that = (StatisticalBarRenderer)obj; | |||||||||||||||||||||||||||||||||
5 | if (!ObjectUtilities.equal(this.category, that.category)) |
| 8 | if (!ObjectUtilities.equal(this.errorIndicatorStroke, that.errorIndicatorStroke)) | |||||||||||||||||||||||||||||||
6 | return false; | 9 | return false; | ||||||||||||||||||||||||||||||||
7 | if (!ObjectUtilities.equal(this.label, that.label)) |
| 6 | if (!PaintUtilities.equal(this.errorIndicatorPaint, that.errorIndicatorPaint)) | |||||||||||||||||||||||||||||||
8 | return false; | 7 | return false; | ||||||||||||||||||||||||||||||||
9 | if (!ObjectUtilities.equal(this.labelAnchor, that.labelAnchor)) |
| 3 | if (!(obj instanceof StatisticalBarRenderer)) | |||||||||||||||||||||||||||||||
10 | return false; | 4 | return false; |
Row | Violation |
---|---|
1 | Type java.lang.Comparable of variable this.category does not match with type java.awt.Stroke of variable this.errorIndicatorStroke |
2 | Type java.lang.Comparable of variable that.category does not match with type java.awt.Stroke of variable that.errorIndicatorStroke |
3 | Expression that.category cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression that.errorIndicatorStroke cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type java.lang.Comparable of variable that.category does not match with type java.awt.Stroke of variable that.errorIndicatorStroke |
6 | Type org.jfree.text.TextBlock of variable this.label does not match with type java.awt.Paint of variable this.errorIndicatorPaint |
7 | Type org.jfree.text.TextBlock of variable that.label does not match with type java.awt.Paint of variable that.errorIndicatorPaint |
8 | Expression that.label cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression that.errorIndicatorPaint cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Type org.jfree.text.TextBlock of variable that.label does not match with type java.awt.Paint of variable that.errorIndicatorPaint |
11 | Type org.jfree.util.ObjectUtilities does not match with type org.jfree.util.PaintUtilities |
12 | Expression ObjectUtilities.equal(this.labelAnchor,that.labelAnchor) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Not all possible execution flows end in a return statement |