File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLHandler.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLSaveImpl.java | |||
Method name: void XMLHandler(XMLResource, XMLHelper, Map,?>)
|
Method name: void init(XMLResource, Map,?>)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | anyType = (EClass)options.get(XMLResource.OPTION_ANY_TYPE);↵ | 1 | anyType = (EClass)options.get(XMLResource.OPTION_ANY_TYPE);↵ | |
2 | anySimpleType = (EClass)options.get(XMLResource.OPTION_ANY_SIMPLE_TYPE);↵ | 2 | anySimpleType = (EClass)options.get(XMLResource.OPTION_ANY_SIMPLE_TYPE);↵ | |
3 | if (anyType == null)↵ | 3 | if (anyType == null)↵ | |
4 | {↵ | 4 | {↵ | |
5 | anyType = XMLTypePackage.eINSTANCE.getAnyType();↵ | 5 | anyType = XMLTypePackage.eINSTANCE.getAnyType();↵ | |
6 | anySimpleType = XMLTypePackage.eINSTANCE.getSimpleAnyType();↵ | 6 | anySimpleType = XMLTypePackage.eINSTANCE.getSimpleAnyType();↵ | |
7 | } | 7 |
| |
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 12 |
Number of mapped statements | 5 |
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) | 6.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
58 | anyType = (EClass)options.get(XMLResource.OPTION_ANY_TYPE); |
| 16 | anyType = (EClass)options.get(XMLResource.OPTION_ANY_TYPE); | |||||||||||||||||
59 | anySimpleType = (EClass)options.get(XMLResource.OPTION_ANY_SIMPLE_TYPE); |
| 17 | anySimpleType = (EClass)options.get(XMLResource.OPTION_ANY_SIMPLE_TYPE); | |||||||||||||||||
60 | if (anyType == null) | 18 | if (anyType == null) | ||||||||||||||||||
61 | anyType = XMLTypePackage.eINSTANCE.getAnyType(); | 19 | anyType = XMLTypePackage.eINSTANCE.getAnyType(); | ||||||||||||||||||
62 | anySimpleType = XMLTypePackage.eINSTANCE.getSimpleAnyType(); | 20 | anySimpleType = XMLTypePackage.eINSTANCE.getSimpleAnyType(); |
Row | Violation |
---|---|
1 | Type of variable options.get(XMLResource.OPTION_ANY_TYPE) does not match with type of variable options.get(XMLResource.OPTION_ANY_TYPE) |
2 | Type java.util.Map<,> of variable options does not match with type java.util.Map<,> of variable options |
3 | Expression options.get(XMLResource.OPTION_ANY_SIMPLE_TYPE) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression options.get(XMLResource.OPTION_ANY_SIMPLE_TYPE) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type of variable options.get(XMLResource.OPTION_ANY_SIMPLE_TYPE) does not match with type of variable options.get(XMLResource.OPTION_ANY_SIMPLE_TYPE) |
6 | Type java.util.Map<,> of variable options does not match with type java.util.Map<,> of variable options |