File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java | |||
Method name: String delegateToString()
|
Method name: String delegateToString()
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | StringBuffer stringBuffer = new StringBuffer();↵ | 1 | StringBuffer stringBuffer = new StringBuffer();↵ | |
2 | stringBuffer.append("[");↵ | 2 | stringBuffer.append("[");↵ | |
3 | EList<EGenericType> eGenericExceptions = getEGenericExceptions();↵ | 3 | EList<EGenericType> eGenericSuperTypes = getEGenericSuperTypes();↵ | |
4 | for (int i = 0, size = delegateSize(); i < size; )↵ | 4 | for (int i = 0, size = delegateSize(); i < size; )↵ | |
5 | {↵ | 5 | {↵ | |
6 | stringBuffer.append(String.valueOf(unwrap(eGenericExceptions.get(i))));↵ | 6 | stringBuffer.append(String.valueOf(unwrap(eGenericSuperTypes.get(i))));↵ | |
7 | if (++i < size)↵ | 7 | if (++i < size)↵ | |
8 | {↵ | 8 | {↵ | |
9 | stringBuffer.append(", ");↵ | 9 | stringBuffer.append(", ");↵ | |
10 | }↵ | 10 | }↵ | |
11 | }↵ | 11 | }↵ | |
12 | stringBuffer.append("]");↵ | 12 | stringBuffer.append("]");↵ | |
13 | return stringBuffer.toString(); | 13 |
| |
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.7 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 21 |
Number of mapped statements | 9 |
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) | 4.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | StringBuffer stringBuffer = new StringBuffer(); | 1 | StringBuffer stringBuffer = new StringBuffer(); | |||||||||||||||||
2 | stringBuffer.append("["); | 2 | stringBuffer.append("["); | |||||||||||||||||
3 | EList<EGenericType> eGenericExceptions = getEGenericExceptions(); |
| 3 | EList<EGenericType> eGenericSuperTypes = getEGenericSuperTypes(); | ||||||||||||||||
4 | for (int i = 0, size = delegateSize(); i < size; ) |
| 4 | for (int i = 0, size = delegateSize(); i < size; ) | ||||||||||||||||
5 | stringBuffer.append(String.valueOf(unwrap(eGenericExceptions.get(i)))); |
| 5 | stringBuffer.append(String.valueOf(unwrap(eGenericSuperTypes.get(i)))); | ||||||||||||||||
6 | if (++i < size) | 6 | if (++i < size) | |||||||||||||||||
7 | stringBuffer.append(", "); | 7 | stringBuffer.append(", "); | |||||||||||||||||
8 | stringBuffer.append("]"); | 8 | stringBuffer.append("]"); | |||||||||||||||||
9 | return stringBuffer.toString(); | 9 | return stringBuffer.toString(); |
Row | Violation |
---|---|
1 | Expression unwrap(eGenericExceptions.get(i)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression unwrap(eGenericSuperTypes.get(i)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Type org.eclipse.emf.ecore.EClassifier of variable unwrap(eGenericExceptions.get(i)) does not match with type org.eclipse.emf.ecore.EClass of variable unwrap(eGenericSuperTypes.get(i)) |
4 | Expression unwrap(eGenericExceptions.get(i)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression unwrap(eGenericSuperTypes.get(i)) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Type org.eclipse.emf.ecore.EClassifier of variable unwrap(eGenericExceptions.get(i)) does not match with type org.eclipse.emf.ecore.EClass of variable unwrap(eGenericSuperTypes.get(i)) |