File path: /emf-2.4.1/src/org/eclipse/emf/common/archive/ArchiveURLConnection.java | File path: /emf-2.4.1/src/org/eclipse/emf/common/archive/Handler.java | |||
Method name: String getNestedURL()
|
Method name: void parseURL(URL, String, int, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | archiveSeparator = urlString.indexOf("!/", archiveSeparator + 2);↵ | 1 | archiveSeparator = specification.indexOf("!/", archiveSeparator + 2);↵ | |
2 | if (archiveSeparator < 0)↵ | 2 | if (archiveSeparator < 0)↵ | |
3 | {↵ | 3 | ↵ | |
4 | ↵ | 4 | {↵ | |
5 | throw new MalformedURLException("too few archive separators " + urlString);↵ | 5 | throw new IllegalArgumentException("too few archive separators " + ↵ | |
6 | }↵ | |||
7 | ++i; | 6 | specification);↵ | |
7 |
| |||
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 in different classes |
Number of node comparisons | 7 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | archiveSeparator = urlString.indexOf("!/", archiveSeparator + 2); |
| 8 | archiveSeparator = specification.indexOf("!/", archiveSeparator + 2); | |||||||||||||
11 | if (archiveSeparator < 0) | 9 | if (archiveSeparator < 0) | ||||||||||||||
12 | throw new MalformedURLException("too few archive separators " + urlString); |
| 10 | throw new IllegalArgumentException("too few archive separators " + specification); | |||||||||||||
13 | ++i; | |
Row | Violation |
---|