File path: /emf-2.4.1/src/org/eclipse/emf/common/util/URI.java | File path: /emf-2.4.1/src/org/eclipse/emf/common/util/URI.java | |||
Method name: URI parseIntoURI(String)
|
Method name: URI parseIntoURI(String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (j == -1) j = uri.length();↵ | 1 | if (j == -1) j = uri.length();↵ | |
2 | authority = uri.substring(i, j);↵ | 2 | query = uri.substring(i, j);↵ | |
3 | i = j; | 3 |
| |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 9 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30 | if (j == -1) | 56 | if (j == -1) | |||||||||||
31 | j = uri.length(); | 57 | j = uri.length(); | |||||||||||
32 | authority = uri.substring(i, j); |
| 58 | query = uri.substring(i, j); | ||||||||||
33 | i = j; | 59 | i = j; |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables i, authority , while Clone fragment #2 returns variables i, query |