File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLHelperImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLHelperImpl.java | |||
Method name: void populateNameInfo(NameInfo, EStructuralFeature)
|
Method name: void populateNameInfo(NameInfo, EDataType)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 6 | |||
1 | XMLResource.XMLInfo info = xmlMap.getInfo(feature);↵ | 1 | XMLResource.XMLInfo clsInfo = xmlMap.getInfo(eDataType);↵ | |
2 | ↵ | |||
3 | if (info != null)↵ | 2 | if (clsInfo != null)↵ | |
4 | {↵ | 3 | {↵ | |
5 | String targetNamespace = info.getTargetNamespace();↵ | 4 | String targetNamespace = clsInfo.getTargetNamespace();↵ | |
6 | nameInfo.setNamespaceURI(targetNamespace);↵ | 5 | nameInfo.setNamespaceURI(targetNamespace);↵ | |
7 | nameInfo.setQualifiedName(getQName(targetNamespace, name));↵ | 6 | nameInfo.setQualifiedName(getQName(targetNamespace, name));↵ | |
8 | ↵ | 7 | return;↵ | |
9 | } | 8 |
| |
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 declared in the same class |
Number of node comparisons | 22 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 6.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18 | XMLResource.XMLInfo info = xmlMap.getInfo(feature); |
| 4 | XMLResource.XMLInfo clsInfo = xmlMap.getInfo(eDataType); | |||||||||||||||||
19 | if (info != null) |
| 5 | if (clsInfo != null) | |||||||||||||||||
20 | String targetNamespace = info.getTargetNamespace(); |
| 6 | String targetNamespace = clsInfo.getTargetNamespace(); | |||||||||||||||||
21 | nameInfo.setNamespaceURI(targetNamespace); | 7 | nameInfo.setNamespaceURI(targetNamespace); | ||||||||||||||||||
22 | nameInfo.setQualifiedName(getQName(targetNamespace, name)); | 8 | nameInfo.setQualifiedName(getQName(targetNamespace, name)); | ||||||||||||||||||
|
| 9 | return; |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.EStructuralFeature of variable feature does not match with type org.eclipse.emf.ecore.EDataType of variable eDataType |
2 | Unmatched return; |