File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/CategoryTick.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/axis/SubCategoryAxis.java | |||
Method name: boolean equals(Object)
|
Method name: boolean equals(Object)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 9 | |||
1 | CategoryTick that↵ | 1 | if (obj instanceof SubCategoryAxis && super.equals(obj)) {↵ | |
2 | = (CategoryTick) obj; ↵ | 2 | SubCategoryAxis axis = (SubCategoryAxis) obj;↵ | |
3 | if (!ObjectUtilities.equal(this.category, that.category)) {↵ | 3 | if (!this.subCategories.equals(axis.subCategories)) {↵ | |
4 | return false; ↵ | 4 | return false;↵ | |
5 | }↵ | 5 | }↵ | |
6 | if (!ObjectUtilities.equal(this.label, that.label)) {↵ | 6 | if (!this.subLabelFont.equals(axis.subLabelFont)) {↵ | |
7 | return false; ↵ | 7 | return false; ↵ | |
8 | }↵ | 8 | }↵ | |
9 | if (!ObjectUtilities.equal(this.labelAnchor, that.labelAnchor)) {↵ | 9 | if (!this.subLabelPaint.equals(axis.subLabelPaint)) {↵ | |
10 | return false; ↵ | 10 | return false; ↵ | |
11 | }↵ | 11 | }↵ | |
12 | return true; | 12 | return true;↵ | |
13 |
| |||
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 32 |
Number of mapped statements | 7 |
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.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 4 | SubCategoryAxis axis = (SubCategoryAxis)obj; | ||||||||||||||
4 | CategoryTick that = (CategoryTick)obj; | | ||||||||||||||
5 | if (!ObjectUtilities.equal(this.category, that.category)) |
| 5 | if (!this.subCategories.equals(axis.subCategories)) | ||||||||||||
6 | return false; | 6 | return false; | |||||||||||||
7 | if (!ObjectUtilities.equal(this.label, that.label)) |
| 7 | if (!this.subLabelFont.equals(axis.subLabelFont)) | ||||||||||||
8 | return false; | 8 | return false; | |||||||||||||
9 | if (!ObjectUtilities.equal(this.labelAnchor, that.labelAnchor)) |
| 9 | if (!this.subLabelPaint.equals(axis.subLabelPaint)) | ||||||||||||
10 | return false; | 10 | return false; | |||||||||||||
11 | return true; | 11 | return true; |
Row | Violation |
---|---|
1 | Expression ObjectUtilities.equal(this.category,that.category) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression this.subCategories.equals(axis.subCategories) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression ObjectUtilities.equal(this.label,that.label) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression this.subLabelFont.equals(axis.subLabelFont) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression ObjectUtilities.equal(this.labelAnchor,that.labelAnchor) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression this.subLabelPaint.equals(axis.subLabelPaint) cannot be parameterized, because it has dependencies to/from statements that will be extracted |