File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIHandlerImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIHandlerImpl.java | |||
Method name: void close()
|
Method name: void delete(URI, Map,?>)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | int responseCode = httpURLConnection.getResponseCode();↵ | 1 | int responseCode = httpURLConnection.getResponseCode();↵ | |
2 | switch (responseCode)↵ | 2 | switch (responseCode)↵ | |
3 | {↵ | 3 | {↵ | |
4 | case HttpURLConnection.HTTP_OK:↵ | 4 | case HttpURLConnection.HTTP_OK:↵ | |
5 | case HttpURLConnection.HTTP_CREATED:↵ | 5 | case HttpURLConnection.HTTP_↵ | |
6 | ↵ | 6 | ACCEPTED:↵ | |
7 | case HttpURLConnection.HTTP_NO_CONTENT:↵ | 7 | case HttpURLConnection.HTTP_NO_CONTENT:↵ | |
8 | {↵ | 8 | ↵ | |
9 | ↵ | 9 | {↵ | |
10 | break;↵ | 10 | break;↵ | |
11 | }↵ | 11 | ↵ | |
12 | ↵ | 12 | }↵ | |
13 | default:↵ | 13 | default:↵ | |
14 | {↵ | 14 | ↵ | |
15 | ↵ | 15 | {↵ | |
16 | throw new IOException("PUT failed with HTTP response code " + responseCode);↵ | 16 | throw new IOException("DELETE failed with HTTP response code " + responseCode);↵ | |
17 | }↵ | 17 | ↵ | |
18 | ↵ | 18 | }↵ | |
19 | } | 19 |
| |
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 the same java file |
Number of node comparisons | 25 |
Number of mapped statements | 8 |
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) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | int responseCode = httpURLConnection.getResponseCode(); | 8 | int responseCode = httpURLConnection.getResponseCode(); | |||||||||||
3 | switch (responseCode) | 9 | switch (responseCode) | |||||||||||
4 | case HttpURLConnection.HTTP_OK: | 10 | case HttpURLConnection.HTTP_OK: | |||||||||||
5 | case HttpURLConnection.HTTP_CREATED: |
| 11 | case HttpURLConnection.HTTP_ACCEPTED: | ||||||||||
6 | case HttpURLConnection.HTTP_NO_CONTENT: | 12 | case HttpURLConnection.HTTP_NO_CONTENT: | |||||||||||
7 | break; | 13 | break; | |||||||||||
8 | default: | 14 | default: | |||||||||||
9 | throw new IOException("PUT failed with HTTP response code " + responseCode); |
| 15 | throw new IOException("DELETE failed with HTTP response code " + responseCode); |
Row | Violation |
---|