File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java | File path: /emf-2.4.1/src/org/eclipse/emf/common/util/BasicEList.java | |||
Method name: boolean addAllUnique(int, Collection extends E>)
|
Method name: boolean addAllUnique(int, Object[], int, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | grow(size + growth); ↵ | 1 | grow(size + growth); ↵ | |
2 | int shifted = size - index;↵ | 2 | int shifted = size - index;↵ | |
3 | if (shifted > 0)↵ | 3 | if (shifted > 0)↵ | |
4 | {↵ | 4 | {↵ | |
5 | System.arraycopy(data, index, data, index + growth, shifted);↵ | 5 | System.arraycopy(data, index, data, index + growth, shifted);↵ | |
6 | } | 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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 8 |
Number of mapped statements | 4 |
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.7 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
2 | grow(size + growth); | 2 | grow(size + growth); | |
3 | int shifted = size - index; | 3 | int shifted = size - index; | |
4 | if (shifted > 0) | 4 | if (shifted > 0) | |
5 | System.arraycopy(data, index, data, index + growth, shifted); | 5 | System.arraycopy(data, index, data, index + growth, shifted); |
Row | Violation |
---|