File path: /emf-2.4.1/src/org/eclipse/emf/common/util/URI.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/util/XMLTypeUtil.java | |||
Method name: URI trimQuery()
|
Method name: String normalize(String, boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (query == null)↵ | 1 | if (buffer == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | return this;↵ | 3 | return ↵ | |
4 | value;↵ | |||
4 | }↵ | 5 | }↵ | |
5 | else↵ | 6 | else↵ | |
6 | {↵ | 7 | ↵ | |
8 | {↵ | |||
7 | return new URI(hierarchical, scheme, authority, device, absolutePath, segments, null, fragment); ↵ | 9 | return ↵ | |
10 | buffer.toString();↵ | |||
8 | } | 11 | } | |
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 in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (query == null) |
| 30 | if (buffer == null) | ||||||||||||||
2 | return this; |
| | |||||||||||||||
else | | |||||||||||||||||
3 | return new URI(hierarchical, scheme, authority, device, absolutePath, segments, null, fragment); |
| | |||||||||||||||
|
| 32 | return buffer.toString(); | |||||||||||||||
|
| 31 | return value; |
Row | Violation |
---|---|
1 | Type java.lang.String of variable query does not match with type java.lang.StringBuffer of variable buffer |
2 | Unmatched return this; |
3 | Unmatched return new URI(hierarchical,scheme,authority,device,absolutePath,segments,null,fragment); |
4 | Unmatched return buffer.toString(); |
5 | Unmatched return value; |