File path: /jfreechart-1.0.10/src/org/jfree/chart/annotations/CategoryPointerAnnotation.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/annotations/XYPointerAnnotation.java | |||
Method name: int hashCode()
|
Method name: int hashCode()
|
|||
Number of AST nodes: 16 | Number of AST nodes: 16 | |||
1 | int result = 193;↵ | 1 | int result = super.hashCode();↵ | |
2 | long temp = Double.doubleToLongBits(this.angle);↵ | 2 | long temp = Double.doubleToLongBits(this.angle);↵ | |
3 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | 3 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
4 | temp = Double.doubleToLongBits(this.tipRadius);↵ | 4 | temp = Double.doubleToLongBits(this.tipRadius);↵ | |
5 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | 5 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
6 | temp = Double.doubleToLongBits(this.baseRadius);↵ | 6 | temp = Double.doubleToLongBits(this.baseRadius);↵ | |
7 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | 7 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
8 | temp = Double.doubleToLongBits(this.arrowLength);↵ | 8 | temp = Double.doubleToLongBits(this.arrowLength);↵ | |
9 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | 9 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
10 | temp = Double.doubleToLongBits(this.arrowWidth);↵ | 10 | temp = Double.doubleToLongBits(this.arrowWidth);↵ | |
11 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | 11 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
12 | result = 37 * result + HashUtilities.hashCodeForPaint(this.arrowPaint);↵ | 12 | result = result * 37 + HashUtilities.hashCodeForPaint(this.arrowPaint);↵ | |
13 | result = 37 * result + this.arrowStroke.hashCode();↵ | 13 | result = result * 37 + this.arrowStroke.hashCode();↵ | |
14 | temp = Double.doubleToLongBits(this.labelOffset);↵ | 14 | temp = Double.doubleToLongBits(this.labelOffset);↵ | |
15 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | 15 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
16 | return result; | 16 | return super.hashCode(); | |
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 | 136 |
Number of mapped statements | 16 |
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 = super.hashCode(); | |||||||||||||||
2 | long temp = Double.doubleToLongBits(this.angle); | 2 | long temp = Double.doubleToLongBits(this.angle); | ||||||||||||||||
3 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 3 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | ||||||||||||||||
4 | temp = Double.doubleToLongBits(this.tipRadius); | 4 | temp = Double.doubleToLongBits(this.tipRadius); | ||||||||||||||||
5 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 5 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | ||||||||||||||||
6 | temp = Double.doubleToLongBits(this.baseRadius); | 6 | temp = Double.doubleToLongBits(this.baseRadius); | ||||||||||||||||
7 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 7 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | ||||||||||||||||
8 | temp = Double.doubleToLongBits(this.arrowLength); | 8 | temp = Double.doubleToLongBits(this.arrowLength); | ||||||||||||||||
9 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 9 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | ||||||||||||||||
10 | temp = Double.doubleToLongBits(this.arrowWidth); | 10 | temp = Double.doubleToLongBits(this.arrowWidth); | ||||||||||||||||
11 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 11 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | ||||||||||||||||
12 | result = 37 * result + HashUtilities.hashCodeForPaint(this.arrowPaint); |
| 12 | result = result * 37 + HashUtilities.hashCodeForPaint(this.arrowPaint); | |||||||||||||||
13 | result = 37 * result + this.arrowStroke.hashCode(); |
| 13 | result = result * 37 + this.arrowStroke.hashCode(); | |||||||||||||||
14 | temp = Double.doubleToLongBits(this.labelOffset); | 14 | temp = Double.doubleToLongBits(this.labelOffset); | ||||||||||||||||
15 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 15 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | ||||||||||||||||
16 | return result; |
| 16 | return super.hashCode(); |
Row | Violation |
---|---|
1 | Super method call int result=super.hashCode(); cannot be extracted from method |
2 | Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression result cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Super method call return super.hashCode(); cannot be extracted from method |
8 | The refactoring of the clones is infeasible, because classes org.jfree.chart.annotations.CategoryPointerAnnotation and org.jfree.chart.annotations.XYPointerAnnotation do not have a common superclass |