File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EOperationItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EClassItemProvider.java | |||
Method name: String getText(Object)
|
Method name: String getText(Object)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | EGenericType eException = i.next();↵ | 1 | ETypeParameter eTypeParameter = i.next();↵ | |
2 | result.append(EGenericTypeItemProvider.getText(eException));↵ | 2 | result.append(ETypeParameterItemProvider.getText(eTypeParameter));↵ | |
3 | if (i.hasNext())↵ | 3 | if (i.hasNext())↵ | |
4 | {↵ | 4 | {↵ | |
5 | result.append(", ");↵ | 5 | result.append(", ");↵ | |
6 | } | 6 |
| |
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 having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 2 |
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) | 5.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 8 | ETypeParameter eTypeParameter = i.next(); | ||||||||||||
|
| 9 | result.append(ETypeParameterItemProvider.getText(eTypeParameter)); | ||||||||||||
25 | EGenericType eException = i.next(); |
| | ||||||||||||
26 | result.append(EGenericTypeItemProvider.getText(eException)); |
| | ||||||||||||
27 | if (i.hasNext()) |
| 10 | if (i.hasNext()) | |||||||||||
28 | result.append(", "); | 11 | result.append(", "); |
Row | Violation |
---|---|
1 | Unmatched statement ETypeParameter eTypeParameter=i.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement result.append(ETypeParameterItemProvider.getText(eTypeParameter)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Unmatched statement EGenericType eException=i.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | Unmatched statement result.append(EGenericTypeItemProvider.getText(eException)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
5 | Type java.util.Iterator<org.eclipse.emf.ecore.EGenericType> of variable i does not match with type java.util.Iterator<org.eclipse.emf.ecore.ETypeParameter> of variable i |