Map<?, ?> response = options == null ? null : (Map<?, ?>)options.get(URIConverter.OPTION_RESPONSE);
if (response == null)
{
response = new HashMap<Object, Object>();
}
Map<?, ?> response = options == null ? null : (Map<?, ?>)options.get(URIConverter.OPTION_RESPONSE);
if (response == null)
{
response = new HashMap<Object, Object>();
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/ResourceImpl.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/ResourceImpl.java
|
Method name: void save(Map,?>)
|
|
Method name: void load(Map,?>)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | Map<?, ?> response = options == null ? null : (Map<?, ?>)options.get(URIConverter.OPTION_RESPONSE);↵ | | 1 | Map<?, ?> response = options == null ? null : (Map<?, ?>)options.get(URIConverter.OPTION_RESPONSE);↵
|
2 | if (response == null)↵ | | 2 | if (response == null)↵
|
3 | {↵ | | 3 | {↵
|
4 | response = new HashMap<Object, Object>();↵ | | 4 | response = new HashMap<Object, Object>();↵
|
5 | } | | 5 | }
|
See real code fragment |
|
See real code fragment |
Summary
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 | 5 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.8 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
| | | 3 | Map<?, ?> response = options == null ? null : (Map<?, ?>)options.get(URIConverter.OPTION_RESPONSE); |
6 | Map<?, ?> response = options == null ? null : (Map<?, ?>)options.get(URIConverter.OPTION_RESPONSE); | | | |
7 | if (response == null) | | 4 | if (response == null) |
8 | response = new HashMap<Object, Object>(); | | 5 | response = new HashMap<Object, Object>(); |
Precondition Violations (1)
Row |
Violation |
1 | Type java.util.Map<,> of variable response does not match with type java.util.Map<,> of variable response |