File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EObjectValidator.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EObjectValidator.java | |||
Method name: boolean validate_EveryDefaultConstraint(EObject, DiagnosticChain, Map
|
Method name: boolean validate_EveryDefaultConstraint(EObject, DiagnosticChain, Map
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (result || theDiagnostics != null)↵ | 1 | if (result || theDiagnostics != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | result &= validate_EveryProxyResolves(object, theDiagnostics, context);↵ | 3 | result &= validate_EveryDataValueConforms(object, theDiagnostics, context);↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (result || theDiagnostics != null)↵ | 5 | if (result || theDiagnostics != null)↵ | |
6 | {↵ | 6 | {↵ | |
7 | result &= validate_EveryReferenceIsContained(object, theDiagnostics, context);↵ | 7 | result &= validate_UniqueID(object, theDiagnostics, context);↵ | |
8 | } | 8 |
| |
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 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) | 113.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (result || theDiagnostics != null) | 6 | if (result || theDiagnostics != null) | |||||||||||||
3 | result &= validate_EveryProxyResolves(object, theDiagnostics, context); |
| 7 | result &= validate_EveryDataValueConforms(object, theDiagnostics, context); | ||||||||||||
4 | if (result || theDiagnostics != null) | 8 | if (result || theDiagnostics != null) | |||||||||||||
5 | result &= validate_EveryReferenceIsContained(object, theDiagnostics, context); |
| 9 | result &= validate_UniqueID(object, theDiagnostics, context); |
Row | Violation |
---|---|
1 | Expression validate_EveryProxyResolves(object,theDiagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression validate_EveryDataValueConforms(object,theDiagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression validate_EveryReferenceIsContained(object,theDiagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression validate_UniqueID(object,theDiagnostics,context) cannot be parameterized, because it has dependencies to/from statements that will be extracted |