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