File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLLoadImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLLoadImpl.java | |||
Method name: void load(XMLResource, InputStream, Map,?>)
|
Method name: void load(XMLResource, InputSource, Map,?>)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | XMLParserPool pool = (XMLParserPool)options.get(XMLResource.OPTION_USE_PARSER_POOL);↵ | 1 | XMLParserPool pool = (XMLParserPool)options.get(XMLResource.OPTION_USE_PARSER_POOL);↵ | |
2 | @SuppressWarnings("unchecked") Map<String, Boolean> parserFeatures = (Map<String, Boolean>)options.get(XMLResource.OPTION_PARSER_FEATURES);↵ | 2 | @SuppressWarnings("unchecked") Map<String, Boolean> parserFeatures = (Map<String, Boolean>)options.get(XMLResource.OPTION_PARSER_FEATURES);↵ | |
3 | @SuppressWarnings("unchecked") Map<String, ?> parserProperties = (Map<String, ?>)options.get(XMLResource.OPTION_PARSER_PROPERTIES);↵ | 3 | @SuppressWarnings("unchecked") Map<String, ?> parserProperties = (Map<String, ?>)options.get(XMLResource.OPTION_PARSER_PROPERTIES);↵ | |
4 | parserFeatures = (parserFeatures == null) ? Collections.<String, Boolean>emptyMap() : parserFeatures;↵ | 4 | parserFeatures = (parserFeatures == null) ? Collections.<String, Boolean>emptyMap() : parserFeatures;↵ | |
5 | parserProperties = (parserProperties == null) ? Collections.<String, Object>emptyMap() : parserProperties; | 5 |
| |
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 | 26 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15 | XMLParserPool pool = (XMLParserPool)options.get(XMLResource.OPTION_USE_PARSER_POOL); |
| 3 | XMLParserPool pool = (XMLParserPool)options.get(XMLResource.OPTION_USE_PARSER_POOL); | |||||||||||||||||
16 | @SuppressWarnings("unchecked") Map<String, Boolean> parserFeatures = (Map<String, Boolean>)options.get(XMLResource.OPTION_PARSER_FEATURES); |
| 4 | @SuppressWarnings("unchecked") Map<String, Boolean> parserFeatures = (Map<String, Boolean>)options.get(XMLResource.OPTION_PARSER_FEATURES); | |||||||||||||||||
|
| 5 | @SuppressWarnings("unchecked") Map<String, ?> parserProperties = (Map<String, ?>)options.get(XMLResource.OPTION_PARSER_PROPERTIES); | ||||||||||||||||||
17 | @SuppressWarnings("unchecked") Map<String, ?> parserProperties = (Map<String, ?>)options.get(XMLResource.OPTION_PARSER_PROPERTIES); |
| | ||||||||||||||||||
18 | parserFeatures = (parserFeatures == null) ? Collections.<String, Boolean>emptyMap() : parserFeatures; | 6 | parserFeatures = (parserFeatures == null) ? Collections.<String, Boolean>emptyMap() : parserFeatures; | ||||||||||||||||||
| 7 | parserProperties = (parserProperties == null) ? Collections.<String, Object>emptyMap() : parserProperties; | |||||||||||||||||||
19 | parserProperties = (parserProperties == null) ? Collections.<String, Object>emptyMap() : parserProperties; | |
Row | Violation |
---|---|
1 | Type of variable options.get(XMLResource.OPTION_USE_PARSER_POOL) does not match with type of variable options.get(XMLResource.OPTION_USE_PARSER_POOL) |
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_PARSER_FEATURES) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression options.get(XMLResource.OPTION_PARSER_FEATURES) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type of variable options.get(XMLResource.OPTION_PARSER_FEATURES) does not match with type of variable options.get(XMLResource.OPTION_PARSER_FEATURES) |
6 | Type java.util.Map<,> of variable options does not match with type java.util.Map<,> of variable options |
7 | Unmatched statement @SuppressWarnings("unchecked") Map<String,?> parserProperties=(Map<String,?>)options.get(XMLResource.OPTION_PARSER_PROPERTIES); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
8 | Unmatched statement @SuppressWarnings("unchecked") Map<String,?> parserProperties=(Map<String,?>)options.get(XMLResource.OPTION_PARSER_PROPERTIES); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
9 | Clone fragment #1 returns variables pool, parserFeatures , while Clone fragment #2 returns variables pool, parserFeatures |