File path: /jfreechart-1.0.10/src/org/jfree/chart/HashUtilities.java | File path: /jfreechart-1.0.10/src/org/jfree/chart/HashUtilities.java | |||
Method name: int hashCode(int, BooleanList)
|
Method name: int hashCode(int, StrokeList)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | result = HashUtilities.hashCode(result, list.getBoolean(0));↵ | 1 | result = HashUtilities.hashCode(result, list.getStroke(0));↵ | |
2 | if (size > 1) {↵ | 2 | if (size > 1) {↵ | |
3 | result = HashUtilities.hashCode(result, ↵ | 3 | result = HashUtilities.hashCode(result, ↵ | |
4 | list.getBoolean(size - 1));↵ | 4 | list.getStroke(size - 1));↵ | |
5 | if (size > 2) {↵ | 5 | if (size > 2) {↵ | |
6 | result = HashUtilities.hashCode(result, ↵ | 6 | result = HashUtilities.hashCode(result, ↵ | |
7 | list.getBoolean(size / 2));↵ | 7 | list.getStroke(size / 2));↵ | |
8 | }↵ | 8 | }↵ | |
9 | } | 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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 10 |
Number of mapped statements | 5 |
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) | 2.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | result = HashUtilities.hashCode(result, list.getBoolean(0)); |
| 7 | result = HashUtilities.hashCode(result, list.getStroke(0)); | ||||||||||||||||||||
8 | if (size > 1) | 8 | if (size > 1) | |||||||||||||||||||||
9 | result = HashUtilities.hashCode(result, list.getBoolean(size - 1)); |
| 9 | result = HashUtilities.hashCode(result, list.getStroke(size - 1)); | ||||||||||||||||||||
10 | if (size > 2) | 10 | if (size > 2) | |||||||||||||||||||||
11 | result = HashUtilities.hashCode(result, list.getBoolean(size / 2)); |
| 11 | result = HashUtilities.hashCode(result, list.getStroke(size / 2)); |
Row | Violation |
---|---|
1 | Type java.lang.Boolean of variable list.getBoolean(0) does not match with type java.awt.Stroke of variable list.getStroke(0) |
2 | Expression list cannot be unified with expression list , because common superclass org.jfree.util.AbstractObjectList does not declare member(s) public java.lang.Boolean getBoolean(int) , public java.awt.Stroke getStroke(int) |
3 | Expression list.getBoolean(size - 1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression list.getStroke(size - 1) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type java.lang.Boolean of variable list.getBoolean(size - 1) does not match with type java.awt.Stroke of variable list.getStroke(size - 1) |
6 | Expression list cannot be unified with expression list , because common superclass org.jfree.util.AbstractObjectList does not declare member(s) public java.lang.Boolean getBoolean(int) , public java.awt.Stroke getStroke(int) |
7 | Expression list.getBoolean(size / 2) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression list.getStroke(size / 2) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Type java.lang.Boolean of variable list.getBoolean(size / 2) does not match with type java.awt.Stroke of variable list.getStroke(size / 2) |
10 | Expression list cannot be unified with expression list , because common superclass org.jfree.util.AbstractObjectList does not declare member(s) public java.lang.Boolean getBoolean(int) , public java.awt.Stroke getStroke(int) |