try
{
Object timeStamp = FILE_INFO_GET_LAST_MODIFIED.invoke(info);
result.put(URIConverter.ATTRIBUTE_TIME_STAMP, timeStamp);
}
catch (Exception exception)
{
// Ignore.
}
try
{
Object length = FILE_INFO_GET_LENGTH_METHOD.invoke(info);
result.put(URIConverter.ATTRIBUTE_LENGTH, length);
}
catch (Exception exception)
{
// Ignore.
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/EFSURIHandlerImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/EFSURIHandlerImpl.java
|
Method name: Map getAttributes(URI, Map,?>)
|
|
Method name: Map getAttributes(URI, Map,?>)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | try↵ | | 1 | try↵
|
2 | {↵ | | 2 | {↵
|
3 | Object timeStamp = FILE_INFO_GET_LAST_MODIFIED.invoke(info);↵ | | 3 | Object length = FILE_INFO_GET_LENGTH_METHOD.invoke(info);↵
|
4 | result.put(URIConverter.ATTRIBUTE_TIME_STAMP, timeStamp);↵ | | 4 | result.put(URIConverter.ATTRIBUTE_LENGTH, length);↵
|
5 | }↵ | | 5 | }↵
|
6 | catch (Exception exception)↵ | | 6 | catch (Exception exception)↵
|
7 | {↵ | | 7 | {↵
|
8 | // Ignore.↵ | | 8 | // Ignore.↵
|
9 | } | | 9 | }
|
See real code fragment |
|
See real code fragment |
Summary
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 3 |
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) | 24.6 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
7 | try | | 31 | try |
8 | Object timeStamp = FILE_INFO_GET_LAST_MODIFIED.invoke(info); | | 32 | Object length = FILE_INFO_GET_LENGTH_METHOD.invoke(info); |
9 | result.put(URIConverter.ATTRIBUTE_TIME_STAMP, timeStamp); | | 33 | result.put(URIConverter.ATTRIBUTE_LENGTH, length); |
Precondition Violations (0)
Row |
Violation |