super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(EcorePackage.Literals.EOPERATION__ETYPE_PARAMETERS,
EcoreFactory.eINSTANCE.createETypeParameter()));
super.collectNewChildDescriptors(newChildDescriptors, object);
newChildDescriptors.add
(createChildParameter
(EcorePackage.Literals.EPACKAGE__ECLASSIFIERS,
EcoreFactory.eINSTANCE.createEClass()));
Clone fragments detected by clone detection tool
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/EPackageItemProvider.java
|
Method name: void collectNewChildDescriptors(Collection
|
|
Method name: void collectNewChildDescriptors(Collection
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | super.collectNewChildDescriptors(newChildDescriptors, object);↵ | | 1 | super.collectNewChildDescriptors(newChildDescriptors, object);↵
|
|
2 | newChildDescriptors.add↵ | | 2 | newChildDescriptors.add↵
|
3 | (createChildParameter↵ | | 3 | (createChildParameter↵
|
4 | (EcorePackage.Literals.EOPERATION__ETYPE_PARAMETERS,↵ | | 4 | (EcorePackage.Literals.EPACKAGE__ECLASSIFIERS,↵
|
5 | EcoreFactory.eINSTANCE.createETypeParameter())); | | 5 | EcoreFactory.eINSTANCE.createEClass()));
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 4 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 1 |
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.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | super.collectNewChildDescriptors(newChildDescriptors, object); | | 1 | super.collectNewChildDescriptors(newChildDescriptors, object); |
| | | 2 | newChildDescriptors.add(createChildParameter(EcorePackage.Literals.EPACKAGE__ECLASSIFIERS, EcoreFactory.eINSTANCE.createEClass())); |
2 | newChildDescriptors.add(createChildParameter(EcorePackage.Literals.EOPERATION__ETYPE_PARAMETERS, EcoreFactory.eINSTANCE.createETypeParameter())); | | | |
Precondition Violations (0)
Row |
Violation |