File path: /emf-2.4.1/src/org/eclipse/emf/mapping/domain/AdapterFactoryMappingDomain.java | File path: /emf-2.4.1/src/org/eclipse/emf/importer/rose/parser/Util.java | |||
Method name: EObject getOutputMetaObject(EObject)
|
Method name: int isValidPath(String)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (isSameEditingDomainAdapterFactory)↵ | 1 | if (↵ | |
2 | exists)↵ | |||
2 | {↵ | 3 | {↵ | |
3 | return inputMetaObject;↵ | 4 | return ↵ | |
5 | NOT_A_DIRECTORY;↵ | |||
4 | }↵ | 6 | }↵ | |
5 | else↵ | 7 | else↵ | |
6 | {↵ | 8 | {↵ | |
7 | return getCorrespondingType(inputMetaObject, mappingRoot.isTopToBottom() ? topToBottomTypeTable : bottomToTopTypeTable);↵ | 9 | return ↵ | |
10 | DIRECTORY_NOT_FOUND;↵ | |||
8 | } | 11 | } | |
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 |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (isSameEditingDomainAdapterFactory) |
| 11 | if (exists) | ||||||||||
2 | return inputMetaObject; |
| | |||||||||||
else | | |||||||||||||
3 | return getCorrespondingType(inputMetaObject, mappingRoot.isTopToBottom() ? topToBottomTypeTable : bottomToTopTypeTable); |
| | |||||||||||
|
| 13 | return DIRECTORY_NOT_FOUND; | |||||||||||
|
| 12 | return NOT_A_DIRECTORY; |
Row | Violation |
---|---|
1 | Unmatched return inputMetaObject; |
2 | Unmatched return getCorrespondingType(inputMetaObject,mappingRoot.isTopToBottom() ? topToBottomTypeTable : bottomToTopTypeTable); |
3 | Unmatched return DIRECTORY_NOT_FOUND; |
4 | Unmatched return NOT_A_DIRECTORY; |