File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/ArchiveURIHandlerImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/ArchiveURIHandlerImpl.java | |||
Method name: InputStream yield(ZipEntry, InputStream)
|
Method name: OutputStream yield(ZipEntry, OutputStream)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | this.zipEntry = zipEntry;↵ | 1 | this.zipEntry = zipEntry;↵ | |
2 | Map<Object, Object> response = getResponse(options);↵ | 2 | Map<Object, Object> response = getResponse(options);↵ | |
3 | if (response != null)↵ | 3 | if (response != null)↵ | |
4 | {↵ | 4 | {↵ | |
5 | response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, zipEntry.getTime());↵ | 5 | response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, zipEntry.getTime());↵ | |
6 | }↵ | 6 | }↵ | |
7 | return super.yield(zipEntry, inputStream); | 7 | return super.yield(zipEntry, outputStream); | |
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 declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 4 |
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.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | this.zipEntry = zipEntry; | 1 | this.zipEntry = zipEntry; | ||||||||||||
2 | Map<Object, Object> response = getResponse(options); |
| 2 | Map<Object, Object> response = getResponse(options); | |||||||||||
3 | if (response != null) | 3 | if (response != null) | ||||||||||||
4 | response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, zipEntry.getTime()); | 4 | response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, zipEntry.getTime()); | ||||||||||||
|
| 5 | return super.yield(zipEntry, outputStream); | ||||||||||||
5 | return super.yield(zipEntry, inputStream); |
| |
Row | Violation |
---|---|
1 | Type java.util.Map<,> of variable options does not match with type java.util.Map<,> of variable options |
2 | Unmatched return super.yield(zipEntry,outputStream); |
3 | Unmatched return super.yield(zipEntry,inputStream); |