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/XMLHandler.java | |||
Method name: void XMLHandler(XMLResource, XMLHelper, Map,?>)
|
Method name: void prepare(XMLResource, XMLHelper, Map,?>)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | @SuppressWarnings("unchecked") Map<EClassFeatureNamePair, EStructuralFeature> newEClassFeatureNamePairToEStructuralFeatureMap = ↵ | 1 | @SuppressWarnings("unchecked") Map<EClassFeatureNamePair, EStructuralFeature> newEClassFeatureNamePairToEStructuralFeatureMap = ↵ | |
2 | (Map<EClassFeatureNamePair, EStructuralFeature>)options.get(XMLResource.OPTION_USE_XML_NAME_TO_FEATURE_MAP);↵ | 2 | (Map<EClassFeatureNamePair, EStructuralFeature>)options.get(XMLResource.OPTION_USE_XML_NAME_TO_FEATURE_MAP);↵ | |
3 | eClassFeatureNamePairToEStructuralFeatureMap = ↵ | 3 | eClassFeatureNamePairToEStructuralFeatureMap = ↵ | |
4 | newEClassFeatureNamePairToEStructuralFeatureMap; | 4 | newEClassFeatureNamePairToEStructuralFeatureMap; | |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 2 |
Number of mapped statements | 2 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
64 | @SuppressWarnings("unchecked") Map<EClassFeatureNamePair, EStructuralFeature> newEClassFeatureNamePairToEStructuralFeatureMap = (Map<EClassFeatureNamePair, EStructuralFeature>)options.get(XMLResource.OPTION_USE_XML_NAME_TO_FEATURE_MAP); |
| 20 | @SuppressWarnings("unchecked") Map<EClassFeatureNamePair, EStructuralFeature> newEClassFeatureNamePairToEStructuralFeatureMap = (Map<EClassFeatureNamePair, EStructuralFeature>)options.get(XMLResource.OPTION_USE_XML_NAME_TO_FEATURE_MAP); | |||||||||||||||
65 | eClassFeatureNamePairToEStructuralFeatureMap = newEClassFeatureNamePairToEStructuralFeatureMap; | 21 | eClassFeatureNamePairToEStructuralFeatureMap = newEClassFeatureNamePairToEStructuralFeatureMap; |
Row | Violation |
---|---|
1 | Type of variable options.get(XMLResource.OPTION_USE_XML_NAME_TO_FEATURE_MAP) does not match with type of variable options.get(XMLResource.OPTION_USE_XML_NAME_TO_FEATURE_MAP) |
2 | Type java.util.Map<,> of variable options does not match with type java.util.Map<,> of variable options |