File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/namespace/impl/XMLNamespaceDocumentRootImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/impl/SimpleAnyTypeImpl.java | |||
Method name: void eUnset(int)
|
Method name: void eUnset(int)
|
|||
Number of AST nodes: 23 | Number of AST nodes: 20 | |||
1 | switch (featureID)↵ | 1 | switch (featureID)↵ | |
2 | {↵ | 2 | {↵ | |
3 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED:↵ | 3 | case XMLTypePackage.SIMPLE_ANY_TYPE__MIXED:↵ | |
4 | getMixed().clear();↵ | 4 | getMixed().clear();↵ | |
5 | return;↵ | 5 | return;↵ | |
6 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP:↵ | 6 | case XMLTypePackage.↵ | |
7 | getXMLNSPrefixMap↵ | 7 | SIMPLE_ANY_TYPE__ANY:↵ | |
8 | ().clear();↵ | 8 | getAny().clear();↵ | |
9 | return;↵ | 9 | return;↵ | |
10 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION:↵ | 10 | case XMLTypePackage.↵ | |
11 | getXSISchemaLocation↵ | 11 | SIMPLE_ANY_TYPE__ANY_ATTRIBUTE:↵ | |
12 | ().clear();↵ | 12 | getAnyAttribute().clear();↵ | |
13 | return;↵ | 13 | return;↵ | |
14 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__BASE:↵ | 14 | case XMLTypePackage.SIMPLE_ANY_TYPE__RAW_VALUE:↵ | |
15 | setBase(BASE_EDEFAULT);↵ | 15 | set↵ | |
16 | return;↵ | |||
17 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID:↵ | |||
18 | setId(ID_EDEFAULT);↵ | 16 | RawValue(RAW_VALUE_EDEFAULT);↵ | |
19 | return;↵ | 17 | return;↵ | |
20 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG:↵ | 18 | case XMLTypePackage.SIMPLE_ANY_TYPE__VALUE:↵ | |
21 | setLang(LANG_EDEFAULT);↵ | 19 | setValue(VALUE_EDEFAULT);↵ | |
22 | return;↵ | 20 | return;↵ | |
23 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE:↵ | 21 | case XMLTypePackage.SIMPLE_ANY_TYPE__INSTANCE_TYPE:↵ | |
24 | unsetSpace();↵ | 22 | setInstanceType((EDataType)null);↵ | |
25 | return;↵ | 23 | return;↵ | |
26 | }↵ | 24 | }↵ | |
27 | eDynamicUnset(featureID); | 25 |
| |
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 | 198 |
Number of mapped statements | 19 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 6.8 |
Clone type | Type 3 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | switch (featureID) | 1 | switch (featureID) | ||||||||||||||||||
2 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__MIXED: |
| 2 | case XMLTypePackage.SIMPLE_ANY_TYPE__MIXED: | |||||||||||||||||
3 | getMixed().clear(); | 3 | getMixed().clear(); | ||||||||||||||||||
4 | return; | 4 | return; | ||||||||||||||||||
5 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XMLNS_PREFIX_MAP: |
| 5 | case XMLTypePackage.SIMPLE_ANY_TYPE__ANY: | |||||||||||||||||
6 | getXMLNSPrefixMap().clear(); |
| 6 | getAny().clear(); | |||||||||||||||||
7 | return; | 7 | return; | ||||||||||||||||||
8 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__XSI_SCHEMA_LOCATION: |
| 8 | case XMLTypePackage.SIMPLE_ANY_TYPE__ANY_ATTRIBUTE: | |||||||||||||||||
9 | getXSISchemaLocation().clear(); |
| 9 | getAnyAttribute().clear(); | |||||||||||||||||
10 | return; | 10 | return; | ||||||||||||||||||
11 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__BASE: |
| 11 | case XMLTypePackage.SIMPLE_ANY_TYPE__RAW_VALUE: | |||||||||||||||||
12 | setBase(BASE_EDEFAULT); |
| 12 | setRawValue(RAW_VALUE_EDEFAULT); | |||||||||||||||||
13 | return; | 13 | return; | ||||||||||||||||||
14 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__ID: |
| 14 | case XMLTypePackage.SIMPLE_ANY_TYPE__VALUE: | |||||||||||||||||
15 | setId(ID_EDEFAULT); | | |||||||||||||||||||
16 | return; | 16 | return; | ||||||||||||||||||
17 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__LANG: |
| 17 | case XMLTypePackage.SIMPLE_ANY_TYPE__INSTANCE_TYPE: | |||||||||||||||||
| 18 | setInstanceType((EDataType)null); | |||||||||||||||||||
18 | setLang(LANG_EDEFAULT); | | |||||||||||||||||||
19 | return; | 19 | return; | ||||||||||||||||||
20 | case XMLNamespacePackage.XML_NAMESPACE_DOCUMENT_ROOT__SPACE: | | |||||||||||||||||||
21 | unsetSpace(); |
| 15 | setValue(VALUE_EDEFAULT); | |||||||||||||||||
22 | return; |
| | ||||||||||||||||||
23 | eDynamicUnset(featureID); | 20 | eDynamicUnset(featureID); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage |
2 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage |
3 | Type org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> of variable getXMLNSPrefixMap() does not match with type org.eclipse.emf.ecore.util.FeatureMap of variable getAny() |
4 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage |
5 | Type org.eclipse.emf.common.util.EMap<java.lang.String,java.lang.String> of variable getXSISchemaLocation() does not match with type org.eclipse.emf.ecore.util.FeatureMap of variable getAnyAttribute() |
6 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage |
7 | Expression setBase(BASE_EDEFAULT) is a void method call, and thus it cannot be parameterized |
8 | Expression setRawValue(RAW_VALUE_EDEFAULT) is a void method call, and thus it cannot be parameterized |
9 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage |
10 | Type org.eclipse.emf.ecore.xml.namespace.XMLNamespacePackage of variable XMLNamespacePackage does not match with type org.eclipse.emf.ecore.xml.type.XMLTypePackage of variable XMLTypePackage |
11 | Expression unsetSpace() is a void method call, and thus it cannot be parameterized |
12 | Expression setValue(VALUE_EDEFAULT) is a void method call, and thus it cannot be parameterized |
13 | Expression unsetSpace() is a void method call, and thus it cannot be parameterized |
14 | Expression setValue(VALUE_EDEFAULT) is a void method call, and thus it cannot be parameterized |
15 | Unmatched return; |