File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/ArcDialFrame.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/DialPlot.java | |||
Method name: int hashCode()
|
Method name: int hashCode()
|
|||
Number of AST nodes: 13 | Number of AST nodes: 13 | |||
1 | int result = 193;↵ | 1 | int result = 193;↵ | |
2 | long temp = Double.doubleToLongBits(this.startAngle);↵ | 2 | ↵ | |
3 | result = 37 * result + (int) (temp ^ (temp >>> 32)↵ | 3 | result = 37 * result + ObjectUtilities.hashCode(this.background);↵ | |
4 | result = 37 * result + ObjectUtilities.hashCode(this.cap);↵ | |||
4 | );↵ | 5 | result = 37 * result + this.dialFrame.hashCode();↵ | |
5 | temp = Double.doubleToLongBits(this.extent);↵ | 6 | long temp = Double.doubleToLongBits(this.viewX);↵ | |
6 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | 7 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
7 | temp = Double.doubleToLongBits(this.innerRadius);↵ | 8 | temp = Double.doubleToLongBits(this.viewY);↵ | |
8 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | 9 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
9 | temp = Double.doubleToLongBits(this.outerRadius);↵ | 10 | temp = Double.doubleToLongBits(this.viewW);↵ | |
10 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | 11 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
11 | result = 37 * result + HashUtilities.hashCodeForPaint(↵ | 12 | ↵ | |
12 | this.backgroundPaint);↵ | |||
13 | result = 37 * result + HashUtilities.hashCodeForPaint(↵ | |||
14 | this.foregroundPaint);↵ | |||
15 | result = 37 * result + this.stroke.hashCode(↵ | 13 | temp = Double.doubleToLongBits(this.viewH);↵ | |
16 | );↵ | 14 | result = 37 * result + (int) (temp ^ (temp >>> 32));↵ | |
17 | return result; | 15 |
| |
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 | 97 |
Number of mapped statements | 12 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | int result = 193; | 1 | int result = 193; | |||||||||||
|
| 2 | result = 37 * result + ObjectUtilities.hashCode(this.background); | |||||||||||
2 | long temp = Double.doubleToLongBits(this.startAngle); |
| 5 | long temp = Double.doubleToLongBits(this.viewX); | ||||||||||
3 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 6 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | |||||||||||
4 | temp = Double.doubleToLongBits(this.extent); |
| 7 | temp = Double.doubleToLongBits(this.viewY); | ||||||||||
5 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 8 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | |||||||||||
6 | temp = Double.doubleToLongBits(this.innerRadius); |
| 9 | temp = Double.doubleToLongBits(this.viewW); | ||||||||||
7 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 10 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | |||||||||||
8 | temp = Double.doubleToLongBits(this.outerRadius); |
| 11 | temp = Double.doubleToLongBits(this.viewH); | ||||||||||
9 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | 12 | result = 37 * result + (int)(temp ^ (temp >>> 32)); | |||||||||||
10 | result = 37 * result + HashUtilities.hashCodeForPaint(this.backgroundPaint); |
| 4 | result = 37 * result + this.dialFrame.hashCode(); | ||||||||||
11 | result = 37 * result + HashUtilities.hashCodeForPaint(this.foregroundPaint); |
| | |||||||||||
12 | result = 37 * result + this.stroke.hashCode(); |
| 3 | result = 37 * result + ObjectUtilities.hashCode(this.cap); | ||||||||||
13 | return result; | 13 | return result; |
Row | Violation |
---|---|
1 | Unmatched statement result=37 * result + ObjectUtilities.hashCode(this.background); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement result=37 * result + HashUtilities.hashCodeForPaint(this.foregroundPaint); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |