File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EPackageImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EPackageImpl.java | |||
Method name: EReference initEReference(EReference, EClassifier, EReference, String, String, int, int, Class>, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean)
|
Method name: EReference initEReference(EReference, EGenericType, EReference, String, String, int, int, Class>, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean, boolean)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | initEStructuralFeature↵ | 1 | initEStructuralFeature↵ | |
2 | (r, ↵ | 2 | (r, ↵ | |
3 | type, ↵ | 3 | type, ↵ | |
4 | name, ↵ | 4 | name, ↵ | |
5 | defaultValue, ↵ | 5 | defaultValue, ↵ | |
6 | lowerBound, ↵ | 6 | lowerBound, ↵ | |
7 | upperBound, ↵ | 7 | upperBound, ↵ | |
8 | containerClass,↵ | 8 | containerClass,↵ | |
9 | isTransient, ↵ | 9 | isTransient, ↵ | |
10 | isVolatile, ↵ | 10 | isVolatile, ↵ | |
11 | isChangeable, ↵ | 11 | isChangeable, ↵ | |
12 | isUnsettable, ↵ | 12 | isUnsettable, ↵ | |
13 | isUnique, ↵ | 13 | isUnique, ↵ | |
14 | isDerived, ↵ | 14 | isDerived, ↵ | |
15 | isOrdered);↵ | 15 | isOrdered);↵ | |
16 | r.setContainment(isContainment);↵ | 16 | r.setContainment(isContainment);↵ | |
17 | if (otherEnd != null)↵ | 17 | if (otherEnd != null)↵ | |
18 | {↵ | 18 | {↵ | |
19 | r.setEOpposite(otherEnd);↵ | 19 | r.setEOpposite(otherEnd);↵ | |
20 | }↵ | 20 | }↵ | |
21 | r.setResolveProxies(isResolveProxies);↵ | 21 | r.setResolveProxies(isResolveProxies);↵ | |
22 | return r; | 22 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 20 |
Number of mapped statements | 6 |
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) | 1.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | initEStructuralFeature(r, type, name, defaultValue, lowerBound, upperBound, containerClass, isTransient, isVolatile, isChangeable, isUnsettable, isUnique, isDerived, isOrdered); |
| 1 | initEStructuralFeature(r, type, name, defaultValue, lowerBound, upperBound, containerClass, isTransient, isVolatile, isChangeable, isUnsettable, isUnique, isDerived, isOrdered); | |||||||||||
2 | r.setContainment(isContainment); | 2 | r.setContainment(isContainment); | ||||||||||||
3 | if (otherEnd != null) | 3 | if (otherEnd != null) | ||||||||||||
4 | r.setEOpposite(otherEnd); | 4 | r.setEOpposite(otherEnd); | ||||||||||||
5 | r.setResolveProxies(isResolveProxies); | 5 | r.setResolveProxies(isResolveProxies); | ||||||||||||
6 | return r; | 6 | return r; |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.ecore.EClassifier of variable type does not match with type org.eclipse.emf.ecore.EGenericType of variable type |