File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/EMOFHelperImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLHelperImpl.java | |||
Method name: EStructuralFeature getFeature(EClass, String, String, boolean)
|
Method name: EStructuralFeature getFeature(EClass, String, String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | EStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(i);↵ | 1 | EStructuralFeature eStructuralFeature = structuralFeatures.get(i);↵ | |
2 | if (name.equals(extendedMetaData.getName(eStructuralFeature)) &&↵ | 2 | if (name.equals(extendedMetaData.getName(eStructuralFeature))↵ | |
3 | (namespaceURI == null ? ↵ | 3 | && (namespaceURI == null ? ↵ | |
4 | extendedMetaData.getNamespace(eStructuralFeature) == null : ↵ | 4 | extendedMetaData.getNamespace(eStructuralFeature) == null : ↵ | |
5 | namespaceURI.equals(extendedMetaData.getNamespace(eStructuralFeature))))↵ | 5 | namespaceURI.equals(extendedMetaData.getNamespace(eStructuralFeature))))↵ | |
6 | {↵ | 6 | {↵ | |
7 | computeFeatureKind(eStructuralFeature);↵ | 7 | ↵ | |
8 | return eStructuralFeature;↵ | 8 | return eStructuralFeature;↵ | |
9 | } | 9 | } | |
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.7 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 8 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 6.7 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
6 | EStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(i); |
| | ||||
|
| 10 | EStructuralFeature eStructuralFeature = structuralFeatures.get(i); | ||||
7 | if (name.equals(extendedMetaData.getName(eStructuralFeature)) && (namespaceURI == null ? extendedMetaData.getNamespace(eStructuralFeature) == null : namespaceURI.equals(extendedMetaData.getNamespace(eStructuralFeature)))) | 11 | if (name.equals(extendedMetaData.getName(eStructuralFeature)) && (namespaceURI == null ? extendedMetaData.getNamespace(eStructuralFeature) == null : namespaceURI.equals(extendedMetaData.getNamespace(eStructuralFeature)))) | ||||
8 | computeFeatureKind(eStructuralFeature); |
| | ||||
9 | return eStructuralFeature; | 12 | return eStructuralFeature; |
Row | Violation |
---|---|
1 | Unmatched statement EStructuralFeature eStructuralFeature=eClass.getEStructuralFeature(i); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement EStructuralFeature eStructuralFeature=structuralFeatures.get(i); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement computeFeatureKind(eStructuralFeature); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |