File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/FileURIHandlerImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/URIHandlerImpl.java | |||
Method name: InputStream createInputStream(URI, Map,?>)
|
Method name: InputStream createInputStream(URI, Map,?>)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | Map<Object, Object> response = getResponse(options);↵ | 1 | Map<Object, Object> response = getResponse(options);↵ | |
2 | if (response != null)↵ | 2 | if (response != null)↵ | |
3 | {↵ | 3 | ↵ | |
4 | {↵ | |||
4 | response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, file.lastModified());↵ | 5 | response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, urlConnection.getLastModified());↵ | |
5 | } | 6 | } | |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | Map<Object, Object> response = getResponse(options); |
| 5 | Map<Object, Object> response = getResponse(options); | |||||||||||
5 | if (response != null) | 6 | if (response != null) | ||||||||||||
6 | response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, file.lastModified()); |
| | ||||||||||||
|
| 7 | response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, urlConnection.getLastModified()); |
Row | Violation |
---|---|
1 | Type java.util.Map<,> of variable options does not match with type java.util.Map<,> of variable options |
2 | Unmatched statement response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY,file.lastModified()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Unmatched statement response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY,urlConnection.getLastModified()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |