File path: /jfreechart-1.0.10/experimental/org/jfree/experimental/chart/annotations/XYTitleAnnotation.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/needle/MeterNeedle.java | |||
Method name: int hashCode()
|
Method name: int hashCode()
|
|||
Number of AST nodes: 9 | Number of AST nodes: 8 | |||
1 | int result = 193;↵ | 1 | int result =↵ | |
2 | result = HashUtilities.hashCode(result, this.anchor);↵ | 2 | HashUtilities.hashCode(193, this.fillPaint); ↵ | |
3 | result = HashUtilities.hashCode(result, this.coordinateType);↵ | 3 | result = HashUtilities.hashCode(result, this.highlightPaint); ↵ | |
4 | result = HashUtilities.hashCode(result, this.x);↵ | 4 | result = HashUtilities.hashCode(result, this.outlinePaint); ↵ | |
5 | result = HashUtilities.hashCode(result, this.y);↵ | 5 | result = HashUtilities.hashCode(result, this.outlineStroke); ↵ | |
6 | result = HashUtilities.hashCode(result, this.maxWidth);↵ | 6 | result = HashUtilities.hashCode(result, this.rotateX); ↵ | |
7 | result = HashUtilities.hashCode(result, this.maxHeight);↵ | 7 | result = HashUtilities.hashCode(result, this.rotateY); ↵ | |
8 | result = HashUtilities.hashCode(result, this.title);↵ | 8 | result = HashUtilities.hashCode(result, this.size); ↵ | |
9 | return result; | 9 |
| |
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 | 72 |
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | int result = 193; |
| 1 | int result = HashUtilities.hashCode(193, this.fillPaint); | ||||||||||||||
2 | result = HashUtilities.hashCode(result, this.anchor); |
| 2 | result = HashUtilities.hashCode(result, this.highlightPaint); | ||||||||||||||
3 | result = HashUtilities.hashCode(result, this.coordinateType); |
| 3 | result = HashUtilities.hashCode(result, this.outlinePaint); | ||||||||||||||
4 | result = HashUtilities.hashCode(result, this.x); |
| 4 | result = HashUtilities.hashCode(result, this.outlineStroke); | ||||||||||||||
5 | result = HashUtilities.hashCode(result, this.y); |
| 5 | result = HashUtilities.hashCode(result, this.rotateX); | ||||||||||||||
6 | result = HashUtilities.hashCode(result, this.maxWidth); |
| 6 | result = HashUtilities.hashCode(result, this.rotateY); | ||||||||||||||
7 | result = HashUtilities.hashCode(result, this.maxHeight); |
| 7 | result = HashUtilities.hashCode(result, this.size); | ||||||||||||||
|
| 8 | return result; | |||||||||||||||
8 | result = HashUtilities.hashCode(result, this.title); |
| | |||||||||||||||
9 | return result; |
| |
Row | Violation |
---|---|
1 | Type org.jfree.ui.RectangleAnchor of variable this.anchor does not match with type java.awt.Paint of variable this.highlightPaint |
2 | Type org.jfree.experimental.chart.util.XYCoordinateType of variable this.coordinateType does not match with type java.awt.Paint of variable this.outlinePaint |
3 | Type double of variable this.x does not match with type java.awt.Stroke of variable this.outlineStroke |
4 | Type double of variable this.maxHeight does not match with type int of variable this.size |
5 | Unmatched statement return result; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | Unmatched return result; |
7 | Unmatched statement result=HashUtilities.hashCode(result,this.title); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
8 | Unmatched return result; |