File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLResourceImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLResourceImpl.java | |||
Method name: void load(InputSource, Map,?>)
|
Method name: void load(Node, Map,?>)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (defaultLoadOptions == null || defaultLoadOptions.isEmpty())↵ | 1 | if (defaultLoadOptions == null || defaultLoadOptions.isEmpty())↵ | |
2 | {↵ | 2 | {↵ | |
3 | doLoad(inputSource, options);↵ | 3 | doLoad(node, options);↵ | |
4 | }↵ | 4 | }↵ | |
5 | else if (options == null)↵ | 5 | else if (options == null)↵ | |
6 | {↵ | 6 | {↵ | |
7 | doLoad(inputSource, defaultLoadOptions);↵ | 7 | doLoad(node, defaultLoadOptions);↵ | |
8 | }↵ | 8 | }↵ | |
9 | else↵ | 9 | else↵ | |
10 | {↵ | 10 | {↵ | |
11 | Map<Object, Object> mergedOptions = new HashMap<Object, Object>(defaultLoadOptions);↵ | 11 | Map<Object, Object> mergedOptions = new HashMap<Object, Object>(defaultLoadOptions);↵ | |
12 | mergedOptions.putAll(options);↵ | 12 | mergedOptions.putAll(options);↵ | |
13 | ↵ | 13 | ↵ | |
14 | doLoad(inputSource, mergedOptions);↵ | 14 | doLoad(node, mergedOptions);↵ | |
15 | } | 15 |
| |
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.5 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 41 |
Number of mapped statements | 7 |
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) | 1.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | if (defaultLoadOptions == null || defaultLoadOptions.isEmpty()) | 9 | if (defaultLoadOptions == null || defaultLoadOptions.isEmpty()) | |||||||||||||||
10 | doLoad(inputSource, options); |
| 10 | doLoad(node, options); | ||||||||||||||
11 | else if (options == null) |
| 11 | else if (options == null) | ||||||||||||||
12 | doLoad(inputSource, defaultLoadOptions); |
| 12 | doLoad(node, defaultLoadOptions); | ||||||||||||||
else | else | |||||||||||||||||
13 | Map<Object, Object> mergedOptions = new HashMap<Object, Object>(defaultLoadOptions); | 13 | Map<Object, Object> mergedOptions = new HashMap<Object, Object>(defaultLoadOptions); | |||||||||||||||
14 | mergedOptions.putAll(options); |
| 14 | mergedOptions.putAll(options); | ||||||||||||||
15 | doLoad(inputSource, mergedOptions); |
| 15 | doLoad(node, mergedOptions); |
Row | Violation |
---|---|
1 | Type org.xml.sax.InputSource of variable inputSource does not match with type org.w3c.dom.Node of variable node |
2 | Type java.util.Map<,> of variable options does not match with type java.util.Map<,> of variable options |
3 | Type org.xml.sax.InputSource of variable inputSource does not match with type org.w3c.dom.Node of variable node |
4 | Type java.util.Map<,> of variable options does not match with type java.util.Map<,> of variable options |
5 | Type org.xml.sax.InputSource of variable inputSource does not match with type org.w3c.dom.Node of variable node |