File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreValidator.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EcoreValidator.java | |||
Method name: boolean validateEReference(EReference, DiagnosticChain, Map
|
Method name: boolean validateEReference(EReference, DiagnosticChain, Map
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (result || diagnostics != null) result &= validateETypedElement_ValidUpperBound(eReference, diagnostics, context);↵ | 1 | if (result || diagnostics != null) result &= validateETypedElement_ValidType(eReference, diagnostics, context);↵ | |
2 | if (result || diagnostics != null) result &= validateETypedElement_ConsistentBounds(eReference, diagnostics, context); | 2 | if (result || diagnostics != null) result &= validateEStructuralFeature_ValidDefaultValueLiteral(eReference, diagnostics, context); | |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 13 |
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) | 653.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18 | if (result || diagnostics != null) | 22 | if (result || diagnostics != null) | |||||||||||||
19 | result &= validateETypedElement_ValidUpperBound(eReference, diagnostics, context); |
| 23 | result &= validateETypedElement_ValidType(eReference, diagnostics, context); | ||||||||||||
20 | if (result || diagnostics != null) | 24 | if (result || diagnostics != null) | |||||||||||||
21 | result &= validateETypedElement_ConsistentBounds(eReference, diagnostics, context); |
| 25 | result &= validateEStructuralFeature_ValidDefaultValueLiteral(eReference, diagnostics, context); |
Row | Violation |
---|---|
1 | Expression validateETypedElement_ValidUpperBound(eReference,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression validateETypedElement_ValidType(eReference,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression validateETypedElement_ConsistentBounds(eReference,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression validateEStructuralFeature_ValidDefaultValueLiteral(eReference,diagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted |