File path: /apache-jmeter-2.11/src/jorphan/org/apache/jorphan/collections/SortedHashTree.java | File path: /apache-jmeter-2.11/src/jorphan/org/apache/jorphan/collections/SortedHashTree.java | |||
Method name: void SortedHashTree(Collection>)
|
Method name: void SortedHashTree(Object[])
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | public SortedHashTree(Collection<?> keys) { | 1 | public SortedHashTree(Object[] keys) { | |
2 | this(); | 2 | this(); | |
3 | for (Object key : keys) { | 3 | for (int x = 0; x < keys.length; x++) { | |
4 | data.put(key, new SortedHashTree()); | 4 | data.put(keys[x], new SortedHashTree()); | |
5 | } | 5 | } | |
6 | } | 6 | } | |
See real code fragment | See real code fragment |
Number of mapped statements | 2 |
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 |
Similarity Score | 0.500 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | for (Object key : keys) |
| 2 | for (int x = 0; x < keys.length; x++) | |||||||||||||||
3 | data.put(key, new SortedHashTree()); |
| 3 | data.put(keys[x], new SortedHashTree()); |
Row | Violation |
---|---|
1 | Type java.util.Collection<> of variable keys does not match with type java.lang.Object[] of variable keys |
2 | Type java.util.Collection<> of variable keys does not match with type java.lang.Object[] of variable keys |
3 | Expression key cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression keys[x] cannot be parameterized, because it has dependencies to/from statements that will be extracted |