File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/util/XMLProcessor.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/util/XMLProcessor.java | |||
Method name: void save(Writer, Resource, Map,?>)
|
Method name: void save(Document, Resource, DOMHandler, Map,?>)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (options != null)↵ | 1 | if (options != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | Map<Object, Object> mergedOptions = new HashMap<Object, Object>(saveOptions);↵ | 3 | Map<Object, Object> mergedOptions = new HashMap<Object, Object>(saveOptions);↵ | |
4 | mergedOptions.putAll(options);↵ | 4 | mergedOptions.putAll(options);↵ | |
5 | ((XMLResource)resource).save(writer, mergedOptions);↵ | 5 | ((XMLResource)resource).save(document, mergedOptions, handler);↵ | |
6 | }↵ | 6 | }↵ | |
7 | else↵ | 7 | else↵ | |
8 | {↵ | 8 | {↵ | |
9 | ((XMLResource)resource).save(writer, saveOptions);↵ | 9 | ((XMLResource)resource).save(document, saveOptions, handler);↵ | |
10 | } | 10 |
| |
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 declared in the same class |
Number of node comparisons | 25 |
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) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (options != null) |
| 1 | if (options != null) | |||||||||||
2 | Map<Object, Object> mergedOptions = new HashMap<Object, Object>(saveOptions); | 2 | Map<Object, Object> mergedOptions = new HashMap<Object, Object>(saveOptions); | ||||||||||||
3 | mergedOptions.putAll(options); |
| 3 | mergedOptions.putAll(options); | |||||||||||
| 4 | ((XMLResource)resource).save(document, mergedOptions, handler); | |||||||||||||
4 | ((XMLResource)resource).save(writer, mergedOptions); | | |||||||||||||
else | | ||||||||||||||
| 5 | ((XMLResource)resource).save(document, saveOptions, handler); | |||||||||||||
5 | ((XMLResource)resource).save(writer, saveOptions); | |
Row | Violation |
---|---|
1 | Type java.util.Map<,> of variable options does not match with type java.util.Map<,> of variable options |
2 | Type java.util.Map<,> of variable options does not match with type java.util.Map<,> of variable options |