File path: /jfreechart-1.0.10/src/org/jfree/chart/plot/dial/DialCap.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/title/Title.java | |||
Method name: int hashCode()
|
Method name: int hashCode()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | int result = 193;↵ | 1 | int result = 193;↵ | |
2 | result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint);↵ | 2 | result = 37 * result + ObjectUtilities.hashCode(this.position); ↵ | |
3 | result = 37 * result + HashUtilities.hashCodeForPaint(↵ | 3 | result = 37 * result ↵ | |
4 | this.outlinePaint);↵ | |||
5 | result = 37 * result + this.outlineStroke.hashCode(↵ | |||
4 | + ObjectUtilities.hashCode(this.horizontalAlignment); ↵ | |||
6 | );↵ | 5 | result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment);↵ | |
7 | return result; | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 25 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
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.position); | |||||||||||
2 | result = 37 * result + HashUtilities.hashCodeForPaint(this.fillPaint); |
| | |||||||||||
| 3 | result = 37 * result + ObjectUtilities.hashCode(this.horizontalAlignment); | ||||||||||||
3 | result = 37 * result + HashUtilities.hashCodeForPaint(this.outlinePaint); | | ||||||||||||
4 | result = 37 * result + this.outlineStroke.hashCode(); |
| 4 | result = 37 * result + ObjectUtilities.hashCode(this.verticalAlignment); | ||||||||||
5 | return result; | 5 | return result; |
Row | Violation |
---|---|
1 | Unmatched statement result=37 * result + ObjectUtilities.hashCode(this.position); 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.fillPaint); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |