result =
new FilterOutputStream(result)
{
@Override
public void close() throws IOException
{
try
{
super.close();
}
finally
{
response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, urlConnection.getLastModified());
}
}
};
result =
new BufferedOutputStream(result)
{
@Override
public void close() throws IOException
{
try
{
super.close();
}
finally
{
response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, getAttributes(uri, options).get(URIConverter.ATTRIBUTE_TIME_STAMP));
}
}
};
Clone fragments detected by clone detection tool
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/EFSURIHandlerImpl.java
|
Method name: OutputStream createOutputStream(URI, Map,?>)
|
|
Method name: OutputStream createOutputStream(URI, Map,?>)
|
Number of AST nodes: 1
|
|
Number of AST nodes: 1
|
|
1 | result = ↵ | | 1 | result =↵
|
2 | ↵ | | |
|
3 | new FilterOutputStream(result)↵ | | 2 | new BufferedOutputStream(result)↵
|
4 | {↵ | | 3 | {↵
|
5 | @Override↵ | | 4 | @Override↵
|
6 | public void close() throws IOException↵ | | 5 | public void close() throws IOException↵
|
7 | {↵ | | 6 | {↵
|
8 | try↵ | | 7 | try↵
|
9 | {↵ | | 8 | {↵
|
10 | super.close();↵ | | 9 | super.close();↵
|
11 | }↵ | | 10 | }↵
|
12 | finally↵ | | 11 | finally↵
|
13 | {↵ | | 12 | ↵
|
14 | ↵ | | 13 | {↵
|
15 | response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, urlConnection.getLastModified());↵ | | 14 | response.put(URIConverter.RESPONSE_TIME_STAMP_PROPERTY, getAttributes(uri, options).get(URIConverter.ATTRIBUTE_TIME_STAMP));↵
|
16 | }↵ | | 15 | }↵
|
17 | }↵ | | 16 | ↵
|
18 | ↵ | | 17 | }↵
|
19 | }; | | 18 | };
|
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 1 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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.0 |
Clone type | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |