File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/ComplexTypeConverterImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/FunctionPairImpl.java | |||
Method name: Object eGet(int, boolean, boolean)
|
Method name: Object eGet(int, boolean, boolean)
|
|||
Number of AST nodes: 10 | Number of AST nodes: 10 | |||
1 | switch (featureID)↵ | 1 | switch (featureID)↵ | |
2 | {↵ | 2 | {↵ | |
3 | case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT:↵ | 3 | case MappingPackage.FUNCTION_PAIR__IN2OUT:↵ | |
4 | if (resolve) return getIn2out();↵ | 4 | if (resolve) return getIn2out();↵ | |
5 | return basicGetIn2out();↵ | 5 | return basicGetIn2out();↵ | |
6 | case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN:↵ | 6 | case MappingPackage.FUNCTION_PAIR__OUT2IN:↵ | |
7 | if (resolve) return getOut2in();↵ | 7 | if (resolve) return getOut2in();↵ | |
8 | return basicGetOut2in();↵ | 8 | return basicGetOut2in();↵ | |
9 | }↵ | 9 | }↵ | |
10 | return super.eGet(featureID, resolve, coreType); | 10 |
| |
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 having the same super class |
Number of node comparisons | 28 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 1.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | switch (featureID) | 1 | switch (featureID) | |||||||||||
2 | case MappingPackage.COMPLEX_TYPE_CONVERTER__IN2OUT: |
| 2 | case MappingPackage.FUNCTION_PAIR__IN2OUT: | ||||||||||
3 | if (resolve) | 3 | if (resolve) | |||||||||||
|
| 4 | return getIn2out(); | |||||||||||
4 | return getIn2out(); |
| | |||||||||||
|
| 5 | return basicGetIn2out(); | |||||||||||
5 | return basicGetIn2out(); |
| | |||||||||||
6 | case MappingPackage.COMPLEX_TYPE_CONVERTER__OUT2IN: |
| 6 | case MappingPackage.FUNCTION_PAIR__OUT2IN: | ||||||||||
7 | if (resolve) | 7 | if (resolve) | |||||||||||
|
| 8 | return getOut2in(); | |||||||||||
8 | return getOut2in(); |
| | |||||||||||
|
| 9 | return basicGetOut2in(); | |||||||||||
9 | return basicGetOut2in(); |
| | |||||||||||
10 | return super.eGet(featureID, resolve, coreType); | 10 | return super.eGet(featureID, resolve, coreType); |
Row | Violation |
---|---|
1 | Unmatched return getIn2out(); |
2 | Unmatched return getIn2out(); |
3 | Unmatched return basicGetIn2out(); |
4 | Unmatched return basicGetIn2out(); |
5 | Unmatched return getOut2in(); |
6 | Unmatched return getOut2in(); |
7 | Unmatched return basicGetOut2in(); |
8 | Unmatched return basicGetOut2in(); |