File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/EMOFExtendedMetaData.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/util/Ecore2XMLExtendedMetaData.java | |||
Method name: int getFeatureKind(EStructuralFeature)
|
Method name: int getFeatureKind(EStructuralFeature)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (info != null)↵ | 1 | if (xmlInfo != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | switch (info.getXMLRepresentation())↵ | 3 | switch (xmlInfo.getXMLRepresentation())↵ | |
4 | {↵ | 4 | {↵ | |
5 | case XMLResource.XMLInfo.ELEMENT:↵ | 5 | case XMLResource.XMLInfo.ELEMENT:↵ | |
6 | return ExtendedMetaData.ELEMENT_FEATURE;↵ | 6 | return ExtendedMetaData.ELEMENT_FEATURE;↵ | |
7 | case XMLResource.XMLInfo.ATTRIBUTE:↵ | 7 | case XMLResource.XMLInfo.ATTRIBUTE:↵ | |
8 | return ExtendedMetaData.ATTRIBUTE_FEATURE;↵ | 8 | return ExtendedMetaData.ATTRIBUTE_FEATURE;↵ | |
9 | }↵ | 9 | }↵ | |
10 | }↵ | 10 | }↵ | |
11 | ↵ | |||
11 | return super.getFeatureKind(feature); | 12 | return super.getFeatureKind(eStructuralFeature); | |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 15 |
Number of mapped statements | 7 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (info != null) |
| 2 | if (xmlInfo != null) | ||||||||||
3 | switch (info.getXMLRepresentation()) |
| 3 | switch (xmlInfo.getXMLRepresentation()) | ||||||||||
4 | case XMLResource.XMLInfo.ELEMENT: | 4 | case XMLResource.XMLInfo.ELEMENT: | |||||||||||
5 | return ExtendedMetaData.ELEMENT_FEATURE; | 5 | return ExtendedMetaData.ELEMENT_FEATURE; | |||||||||||
6 | case XMLResource.XMLInfo.ATTRIBUTE: | 6 | case XMLResource.XMLInfo.ATTRIBUTE: | |||||||||||
7 | return ExtendedMetaData.ATTRIBUTE_FEATURE; | 7 | return ExtendedMetaData.ATTRIBUTE_FEATURE; | |||||||||||
8 | return super.getFeatureKind(feature); |
| 8 | return super.getFeatureKind(eStructuralFeature); |
Row | Violation |
---|