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: void setAttributes(URI, Map
|
Method name: void setAttributes(URI, Map
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | try↵ | 1 | try↵ | |
2 | {↵ | 2 | {↵ | |
3 | FILE_INFO_SET_ATTRIBUTE_METHOD.invoke(info, ATTRIBUTE_READ_ONLY, isReadOnly);↵ | 3 | FILE_INFO_SET_ATTRIBUTE_METHOD.invoke(info, ATTRIBUTE_ARCHIVE, isArchive);↵ | |
4 | set |= SET_ATTRIBUTES;↵ | 4 | set |= SET_ATTRIBUTES;↵ | |
5 | }↵ | 5 | }↵ | |
6 | catch (Exception exception)↵ | 6 | catch (Exception exception)↵ | |
7 | {↵ | 7 | {↵ | |
8 | throw new Resource.IOWrappedException(exception);↵ | 8 | throw new Resource.IOWrappedException(exception);↵ | |
9 | } | 9 |
| |
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.3 |
Clones location | Clones are in the same method |
Number of node comparisons | 10 |
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) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | try | 19 | try | ||||||||||||||
15 | FILE_INFO_SET_ATTRIBUTE_METHOD.invoke(info, ATTRIBUTE_READ_ONLY, isReadOnly); |
| 20 | FILE_INFO_SET_ATTRIBUTE_METHOD.invoke(info, ATTRIBUTE_ARCHIVE, isArchive); | |||||||||||||
16 | set |= SET_ATTRIBUTES; | 21 | set |= SET_ATTRIBUTES; |
Row | Violation |
---|