File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/impl/XMLMapImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/tree/impl/TreeNodeImpl.java | |||
Method name: void eUnset(int)
|
Method name: void eUnset(int)
|
|||
Number of AST nodes: 11 | Number of AST nodes: 11 | |||
1 | switch (featureID)↵ | 1 | switch (featureID)↵ | |
2 | {↵ | 2 | {↵ | |
3 | case Ecore2XMLPackage.XML_MAP__ID_ATTRIBUTE_NAME:↵ | 3 | case ↵ | |
4 | setIDAttributeName(ID_ATTRIBUTE_NAME_EDEFAULT);↵ | |||
5 | return;↵ | |||
6 | case Ecore2XMLPackage.XML_MAP__ECORE_TO_XML_INFO:↵ | |||
7 | getEcoreToXMLInfo().clear();↵ | |||
8 | return;↵ | |||
9 | case Ecore2XMLPackage.XML_MAP__NO_NAMESPACE_PACKAGE:↵ | |||
10 | setNoNamespacePackage((EPackage↵ | 4 | TreePackage.TREE_NODE__PARENT:↵ | |
5 | setParent((TreeNode)null);↵ | |||
6 | return;↵ | |||
7 | case TreePackage.TREE_NODE__CHILDREN:↵ | |||
8 | getChildren().clear();↵ | |||
9 | return;↵ | |||
10 | case TreePackage.TREE_NODE__DATA:↵ | |||
11 | )null);↵ | 11 | setData((EObject)null);↵ | |
12 | return;↵ | 12 | return;↵ | |
13 | }↵ | 13 | }↵ | |
14 | super.eUnset(featureID); | 14 |
| |
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 | 56 |
Number of mapped statements | 11 |
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) | 3.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | switch (featureID) | 1 | switch (featureID) | |||||||||||||||||||||
2 | case Ecore2XMLPackage.XML_MAP__ID_ATTRIBUTE_NAME: |
| 5 | case TreePackage.TREE_NODE__CHILDREN: | ||||||||||||||||||||
3 | setIDAttributeName(ID_ATTRIBUTE_NAME_EDEFAULT); |
| 6 | getChildren().clear(); | ||||||||||||||||||||
4 | return; | 7 | return; | |||||||||||||||||||||
5 | case Ecore2XMLPackage.XML_MAP__ECORE_TO_XML_INFO: |
| 2 | case TreePackage.TREE_NODE__PARENT: | ||||||||||||||||||||
6 | getEcoreToXMLInfo().clear(); |
| 3 | setParent((TreeNode)null); | ||||||||||||||||||||
7 | return; | 4 | return; | |||||||||||||||||||||
8 | case Ecore2XMLPackage.XML_MAP__NO_NAMESPACE_PACKAGE: |
| 8 | case TreePackage.TREE_NODE__DATA: | ||||||||||||||||||||
9 | setNoNamespacePackage((EPackage)null); |
| 9 | setData((EObject)null); | ||||||||||||||||||||
10 | return; | 10 | return; | |||||||||||||||||||||
11 | super.eUnset(featureID); | 11 | super.eUnset(featureID); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage does not match with type org.eclipse.emf.edit.tree.TreePackage of variable TreePackage |
2 | Expression setIDAttributeName(ID_ATTRIBUTE_NAME_EDEFAULT) is a void method call, and thus it cannot be parameterized |
3 | Expression getChildren().clear() is a void method call, and thus it cannot be parameterized |
4 | Expression setIDAttributeName(ID_ATTRIBUTE_NAME_EDEFAULT) is a void method call, and thus it cannot be parameterized |
5 | Expression getChildren().clear() is a void method call, and thus it cannot be parameterized |
6 | Type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage does not match with type org.eclipse.emf.edit.tree.TreePackage of variable TreePackage |
7 | Expression getEcoreToXMLInfo().clear() is a void method call, and thus it cannot be parameterized |
8 | Expression setParent((TreeNode)null) is a void method call, and thus it cannot be parameterized |
9 | Expression getEcoreToXMLInfo().clear() is a void method call, and thus it cannot be parameterized |
10 | Expression setParent((TreeNode)null) is a void method call, and thus it cannot be parameterized |
11 | Type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage does not match with type org.eclipse.emf.edit.tree.TreePackage of variable TreePackage |
12 | Expression setNoNamespacePackage((EPackage)null) is a void method call, and thus it cannot be parameterized |
13 | Expression setData((EObject)null) is a void method call, and thus it cannot be parameterized |
14 | Type org.eclipse.emf.ecore.EPackage of variable (EPackage)null does not match with type org.eclipse.emf.ecore.EObject of variable (EObject)null |