File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/impl/XMLInfoImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/impl/MappingRootImpl.java | |||
Method name: void eSet(int, Object)
|
Method name: void eSet(int, Object)
|
|||
Number of AST nodes: 11 | Number of AST nodes: 11 | |||
1 | switch (featureID)↵ | 1 | switch (featureID)↵ | |
2 | {↵ | 2 | {↵ | |
3 | case Ecore2XMLPackage.XML_INFO__NAME:↵ | 3 | case ↵ | |
4 | setName((String)newValue↵ | 4 | MappingPackage.MAPPING_ROOT__OUTPUT_READ_ONLY:↵ | |
5 | );↵ | 5 | setOutputReadOnly(((Boolean)newValue).booleanValue());↵ | |
6 | return;↵ | 6 | return;↵ | |
7 | case Ecore2XMLPackage.XML_INFO__TARGET_NAMESPACE:↵ | 7 | case ↵ | |
8 | setTargetNamespace((String)newValue↵ | 8 | MappingPackage.MAPPING_ROOT__TOP_TO_BOTTOM:↵ | |
9 | );↵ | 9 | setTopToBottom(((Boolean)newValue).booleanValue());↵ | |
10 | return;↵ | 10 | return;↵ | |
11 | case Ecore2XMLPackage.XML_INFO__XML_REPRESENTATION:↵ | 11 | case ↵ | |
12 | setXMLRepresentation(((Integer)newValue).intValue()↵ | 12 | MappingPackage.MAPPING_ROOT__COMMAND_STACK:↵ | |
13 | );↵ | 13 | setCommandStack((String)newValue);↵ | |
14 | return;↵ | 14 | return;↵ | |
15 | }↵ | 15 | }↵ | |
16 | super.eSet(featureID, newValue); | 16 |
| |
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 | 10 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 2.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | switch (featureID) | 1 | switch (featureID) | ||||||||||||||||||||||||
2 | case Ecore2XMLPackage.XML_INFO__NAME: |
| 8 | case MappingPackage.MAPPING_ROOT__COMMAND_STACK: | |||||||||||||||||||||||
3 | setName((String)newValue); |
| 9 | setCommandStack((String)newValue); | |||||||||||||||||||||||
4 | return; | 10 | return; | ||||||||||||||||||||||||
5 | case Ecore2XMLPackage.XML_INFO__TARGET_NAMESPACE: |
| 5 | case MappingPackage.MAPPING_ROOT__TOP_TO_BOTTOM: | |||||||||||||||||||||||
6 | setTargetNamespace((String)newValue); | | |||||||||||||||||||||||||
7 | return; | 7 | return; | ||||||||||||||||||||||||
8 | case Ecore2XMLPackage.XML_INFO__XML_REPRESENTATION: |
| 2 | case MappingPackage.MAPPING_ROOT__OUTPUT_READ_ONLY: | |||||||||||||||||||||||
9 | setXMLRepresentation(((Integer)newValue).intValue()); |
| 3 | setOutputReadOnly(((Boolean)newValue).booleanValue()); | |||||||||||||||||||||||
10 | return; | 4 | return; | ||||||||||||||||||||||||
| 6 | setTopToBottom(((Boolean)newValue).booleanValue()); | |||||||||||||||||||||||||
11 | super.eSet(featureID, newValue); | 11 | super.eSet(featureID, newValue); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage does not match with type org.eclipse.emf.mapping.MappingPackage of variable MappingPackage |
2 | Expression setName((String)newValue) is a void method call, and thus it cannot be parameterized |
3 | Expression setCommandStack((String)newValue) is a void method call, and thus it cannot be parameterized |
4 | Type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage does not match with type org.eclipse.emf.mapping.MappingPackage of variable MappingPackage |
5 | Type org.eclipse.emf.mapping.ecore2xml.Ecore2XMLPackage of variable Ecore2XMLPackage does not match with type org.eclipse.emf.mapping.MappingPackage of variable MappingPackage |
6 | Expression setXMLRepresentation(((Integer)newValue).intValue()) is a void method call, and thus it cannot be parameterized |
7 | Expression setOutputReadOnly(((Boolean)newValue).booleanValue()) is a void method call, and thus it cannot be parameterized |
8 | Type int of variable ((Integer)newValue).intValue() does not match with type boolean of variable ((Boolean)newValue).booleanValue() |
9 | Type java.lang.Integer of variable (Integer)newValue does not match with type java.lang.Boolean of variable (Boolean)newValue |