File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreValidator.java | |||
Method name: boolean equivalent(EGenericType, EGenericType)
|
Method name: boolean matchingTypeArguments(EList
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | EGenericType eTypeArgument = eTypeArguments.get(j);↵ | 1 | EGenericType eTypeArgument1 = eTypeArguments1.get(i);↵ | |
2 | EGenericType otherETypeArgument = otherETypeArguments.get(j);↵ | 2 | EGenericType eTypeArgument2 = eTypeArguments2.get(i);↵ | |
3 | if (!equivalent(eTypeArgument, otherETypeArgument))↵ | 3 | if (!isMatching(eTypeArgument1, eTypeArgument↵ | |
4 | {↵ | |||
5 | ↵ | 4 | 2, substitutions))↵ | |
5 | {↵ | |||
6 | return false;↵ | 6 | return false;↵ | |
7 | } | 7 |
| |
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
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) | 1.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17 | EGenericType eTypeArgument = eTypeArguments.get(j); |
| 6 | EGenericType eTypeArgument2 = eTypeArguments2.get(i); | |||||||||||||||||
18 | EGenericType otherETypeArgument = otherETypeArguments.get(j); |
| 5 | EGenericType eTypeArgument1 = eTypeArguments1.get(i); | |||||||||||||||||
19 | if (!equivalent(eTypeArgument, otherETypeArgument)) |
| 7 | if (!isMatching(eTypeArgument1, eTypeArgument2, substitutions)) | |||||||||||||||||
20 | return false; |
| 8 | return false; |
Row | Violation |
---|---|
1 | Expression equivalent(eTypeArgument,otherETypeArgument) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression isMatching(eTypeArgument1,eTypeArgument2,substitutions) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression equivalent(eTypeArgument,otherETypeArgument) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression isMatching(eTypeArgument1,eTypeArgument2,substitutions) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Conditional return false; |
6 | Conditional return false; |