File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/impl/ResourceChangeImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/impl/XMLMapImpl.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 ChangePackage.RESOURCE_CHANGE__RESOURCE_URI:↵ | 3 | case ↵ | |
4 | setResourceURI(RESOURCE_URI↵ | 4 | Ecore2XMLPackage.XML_MAP__ID_ATTRIBUTE_NAME:↵ | |
5 | _EDEFAULT);↵ | 5 | setIDAttributeName(ID_ATTRIBUTE_NAME_EDEFAULT);↵ | |
6 | return;↵ | 6 | return;↵ | |
7 | case ChangePackage.RESOURCE_CHANGE__RESOURCE:↵ | 7 | case Ecore2XMLPackage.XML_MAP__ECORE_TO_XML_INFO:↵ | |
8 | setResource(RESOURCE_EDEFAULT);↵ | 8 | getEcoreToXMLInfo().clear();↵ | |
9 | return;↵ | 9 | return;↵ | |
10 | case ChangePackage.RESOURCE_CHANGE__LIST_CHANGES:↵ | 10 | case Ecore2XMLPackage.XML_MAP__NO_NAMESPACE_PACKAGE:↵ | |
11 | getListChanges().clear();↵ | 11 | setNoNamespacePackage((EPackage)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) | 2.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | switch (featureID) | 1 | switch (featureID) | |||||||||||||||||||||
2 | case ChangePackage.RESOURCE_CHANGE__RESOURCE_URI: |
| 2 | case Ecore2XMLPackage.XML_MAP__ID_ATTRIBUTE_NAME: | ||||||||||||||||||||
3 | setResourceURI(RESOURCE_URI_EDEFAULT); |
| 3 | setIDAttributeName(ID_ATTRIBUTE_NAME_EDEFAULT); | ||||||||||||||||||||
4 | return; | 4 | return; | |||||||||||||||||||||
5 | case ChangePackage.RESOURCE_CHANGE__RESOURCE: |
| 5 | case Ecore2XMLPackage.XML_MAP__ECORE_TO_XML_INFO: | ||||||||||||||||||||
6 | setResource(RESOURCE_EDEFAULT); |
| 6 | getEcoreToXMLInfo().clear(); | ||||||||||||||||||||
7 | return; | 7 | return; | |||||||||||||||||||||
8 | case ChangePackage.RESOURCE_CHANGE__LIST_CHANGES: |
| 8 | case Ecore2XMLPackage.XML_MAP__NO_NAMESPACE_PACKAGE: | ||||||||||||||||||||
9 | getListChanges().clear(); |
| 9 | setNoNamespacePackage((EPackage)null); | ||||||||||||||||||||
10 | return; | 10 | return; | |||||||||||||||||||||
11 | super.eUnset(featureID); | 11 | super.eUnset(featureID); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.change.ChangePackage of variable ChangePackage does not match with type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage |
2 | Expression setResourceURI(RESOURCE_URI_EDEFAULT) is a void method call, and thus it cannot be parameterized |
3 | Expression setIDAttributeName(ID_ATTRIBUTE_NAME_EDEFAULT) is a void method call, and thus it cannot be parameterized |
4 | Type org.eclipse.emf.ecore.change.ChangePackage of variable ChangePackage does not match with type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage |
5 | Expression setResource(RESOURCE_EDEFAULT) is a void method call, and thus it cannot be parameterized |
6 | Expression getEcoreToXMLInfo().clear() is a void method call, and thus it cannot be parameterized |
7 | Expression setResource(RESOURCE_EDEFAULT) is a void method call, and thus it cannot be parameterized |
8 | Expression getEcoreToXMLInfo().clear() is a void method call, and thus it cannot be parameterized |
9 | Type org.eclipse.emf.ecore.change.ChangePackage of variable ChangePackage does not match with type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage |
10 | Expression getListChanges().clear() is a void method call, and thus it cannot be parameterized |
11 | Expression setNoNamespacePackage((EPackage)null) is a void method call, and thus it cannot be parameterized |
12 | Expression getListChanges().clear() is a void method call, and thus it cannot be parameterized |
13 | Expression setNoNamespacePackage((EPackage)null) is a void method call, and thus it cannot be parameterized |