File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLHelperImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EGenericTypeImpl.java | |||
Method name: String getName(ENamedElement)
|
Method name: void toString(StringBuilder)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | String result = info.getName();↵ | 1 | String label = eTypeParameter.getName();↵ | |
2 | if (result != null)↵ | 2 | if (label != null)↵ | |
3 | {↵ | 3 | ↵ | |
4 | ↵ | 4 | {↵ | |
5 | return result;↵ | 5 | re↵ | |
6 | ↵ | 6 | sult.append(label);↵ | |
7 | } | 7 |
| |
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |
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.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | String result = info.getName(); |
| 25 | String label = eTypeParameter.getName(); | |||||||||||||||||
7 | if (result != null) |
| 26 | if (label != null) | |||||||||||||||||
8 | return result; | | |||||||||||||||||||
| 27 | result.append(label); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.xmi.XMLResource.XMLInfo of variable info does not match with type org.eclipse.emf.ecore.ETypeParameter of variable eTypeParameter |