File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EClassItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EOperationItemProvider.java | |||
Method name: void setPropertyValue(Object, Object)
|
Method name: void setPropertyValue(Object, Object)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | for (EGenericType eGenericSuperType : eClass.getEGenericSuperTypes())↵ | 1 | for (EGenericType eGenericException : eOperation.getEGenericExceptions())↵ | |
2 | {↵ | 2 | {↵ | |
3 | if (eGenericSuperType.getEClassifier() == eSuperType)↵ | 3 | if (eGenericException.getEClassifier() == eException)↵ | |
4 | {↵ | 4 | {↵ | |
5 | eGenericTypes.add(eGenericSuperType);↵ | 5 | eGenericTypes.add(eGenericException);↵ | |
6 | continue LOOP;↵ | 6 | continue LOOP;↵ | |
7 | }↵ | 7 | }↵ | |
8 | }↵ | 8 | }↵ | |
9 | EGenericType eGenericType = EcoreFactory.eINSTANCE.createEGenericType();↵ | 9 | EGenericType eGenericType = EcoreFactory.eINSTANCE.createEGenericType();↵ | |
10 | eGenericType.setEClassifier(eSuperType);↵ | 10 | eGenericType.setEClassifier(eException);↵ | |
11 | for (int i = 0, size = eSuperType.getETypeParameters().size(); i < size; ++i)↵ | 11 | for (int i = 0, size = eException.getETypeParameters().size(); i < size; ++i)↵ | |
12 | {↵ | 12 | {↵ | |
13 | eGenericType.getETypeArguments().add(EcoreFactory.eINSTANCE.createEGenericType());↵ | 13 | eGenericType.getETypeArguments().add(EcoreFactory.eINSTANCE.createEGenericType());↵ | |
14 | }↵ | 14 | }↵ | |
15 | eGenericTypes.add(eGenericType); | 15 |
| |
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.6 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 13 |
Number of mapped statements | 3 |
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) | 23.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9 | if (eGenericSuperType.getEClassifier() == eSuperType) |
| 9 | if (eGenericException.getEClassifier() == eException) | ||||||||||||||||||||
10 | eGenericTypes.add(eGenericSuperType); |
| 10 | eGenericTypes.add(eGenericException); | ||||||||||||||||||||
11 | continue LOOP; |
| 11 | continue LOOP; |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.EClass of variable eSuperType does not match with type org.eclipse.emf.ecore.EClassifier of variable eException |
2 | Statement continue LOOP; without innermost loop |
3 | Statement continue LOOP; without innermost loop |