File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/SortedHashTree.java | File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/SortedHashTree.java | |||
Method name: HashTree createNewTree(Object)
|
Method name: HashTree createNewTree(Collection)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (comparator == null) {↵ | 1 | if (comparator == null) {↵ | |
2 | return new SortedHashTree(key);↵ | 2 | return new SortedHashTree(values);↵ | |
3 | } else {↵ | 3 | } else {↵ | |
4 | return new SortedHashTree(key, comparator);↵ | 4 | return new SortedHashTree(values, comparator);↵ | |
5 | } | 5 |
| |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (comparator == null) | 1 | if (comparator == null) | |||||||||||||||
2 | return new SortedHashTree(key); |
| 2 | return new SortedHashTree(values); | ||||||||||||||
else | else | |||||||||||||||||
3 | return new SortedHashTree(key, comparator); |
| 3 | return new SortedHashTree(values, comparator); |
Row | Violation |
---|---|
1 | Type java.lang.Object of variable key does not match with type java.util.Collection of variable values |
2 | Type java.lang.Object of variable key does not match with type java.util.Collection of variable values |