File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EEnumImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.java | |||
Method name: void freeze()
|
Method name: void freeze()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (eLiterals != null)↵ | 1 | if (eParameters != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | for (int i = 0, size = eLiterals.size(); i < size; ++i)↵ | 3 | for (int i = 0, size = eParameters.size(); i < size; ++i)↵ | |
4 | {↵ | 4 | {↵ | |
5 | freeze(eLiterals.get(i));↵ | 5 | freeze(eParameters.get(i));↵ | |
6 | }↵ | 6 | }↵ | |
7 | }↵ | 7 | }↵ | |
8 | super.freeze(); | 8 |
| |
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 | 6 |
Number of mapped statements | 4 |
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) | 2.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (eLiterals != null) |
| 1 | if (eParameters != null) | ||||||||||||||||||||
2 | for (int i = 0, size = eLiterals.size(); i < size; ++i) |
| 2 | for (int i = 0, size = eParameters.size(); i < size; ++i) | ||||||||||||||||||||
3 | freeze(eLiterals.get(i)); |
| 3 | freeze(eParameters.get(i)); | ||||||||||||||||||||
4 | super.freeze(); | 4 | super.freeze(); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EEnumLiteral> of variable eLiterals does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EParameter> of variable eParameters |
2 | Type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EEnumLiteral> of variable eLiterals does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EParameter> of variable eParameters |
3 | Expression eLiterals.get(i) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression eParameters.get(i) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Type org.eclipse.emf.ecore.EEnumLiteral of variable eLiterals.get(i) does not match with type org.eclipse.emf.ecore.EParameter of variable eParameters.get(i) |
6 | Type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EEnumLiteral> of variable eLiterals does not match with type org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EParameter> of variable eParameters |