File path: /jfreechart-1.0.10/src/org/jfree/chart/annotations/CategoryLineAnnotation.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/DialTextAnnotation.java | |||
Method name: int hashCode()
|
Method name: int hashCode()
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | int result = 193;↵ | 1 | int result = 193;↵ | |
2 | result = 37 * result + this.category1.hashCode();↵ | 2 | result = 37 * result + ↵ | |
3 | long temp = Double.doubleToLongBits(this.value1);↵ | |||
4 | result = 37 * result + (int) (temp ^ (temp >>> 32)↵ | 3 | HashUtilities.hashCodeForPaint(this.paint);↵ | |
4 | result = 37 * result + this.font.hashCode();↵ | |||
5 | );↵ | 5 | result = 37 * result + this.label.hashCode();↵ | |
6 | result = 37 * result + this.category2.hashCode();↵ | 6 | result = 37 * result + this.anchor.hashCode();↵ | |
7 | temp = Double.doubleToLongBits(this.value2);↵ | 7 | long temp = Double.doubleToLongBits(this.angle);↵ | |
8 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | 8 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
9 | result = 37 * result + HashUtilities.hashCodeForPaint(this.paint);↵ | 9 | ↵ | |
10 | result = 37 * result + this.stroke.hashCode(↵ | 10 | temp = Double.doubleToLongBits(this.radius);↵ | |
11 | );↵ | 11 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
12 | return result; | 12 |
| |
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) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 68 |
Number of mapped statements | 10 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | int result = 193; | 1 | int result = 193; | |||||||||||||||
2 | result = 37 * result + this.category1.hashCode(); |
| 2 | result = 37 * result + HashUtilities.hashCodeForPaint(this.paint); | ||||||||||||||
3 | long temp = Double.doubleToLongBits(this.value1); |
| 6 | long temp = Double.doubleToLongBits(this.angle); | ||||||||||||||
4 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 7 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | |||||||||||||||
5 | result = 37 * result + this.category2.hashCode(); |
| 5 | result = 37 * result + this.anchor.hashCode(); | ||||||||||||||
6 | temp = Double.doubleToLongBits(this.value2); |
| 8 | temp = Double.doubleToLongBits(this.radius); | ||||||||||||||
7 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 9 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | |||||||||||||||
8 | result = 37 * result + HashUtilities.hashCodeForPaint(this.paint); |
| 3 | result = 37 * result + this.font.hashCode(); | ||||||||||||||
9 | result = 37 * result + this.stroke.hashCode(); |
| 4 | result = 37 * result + this.label.hashCode(); | ||||||||||||||
10 | return result; | 10 | return result; |
Row | Violation |
---|---|
1 | Type java.lang.Comparable of variable this.category2 does not match with type org.jfree.ui.TextAnchor of variable this.anchor |
2 | Expression this.font.hashCode() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Type java.awt.Stroke of variable this.stroke does not match with type java.lang.String of variable this.label |