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 validateEClass_InterfaceIsAbstract(EClass, DiagnosticChain, Map
|
Method name: boolean validateEClass_NoCircularSuperTypes(EClass, DiagnosticChain, Map
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (!result && diagnostics != null)↵ | 1 | if (!result && diagnostics != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | diagnostics.add↵ | 3 | diagnostics.add↵ | |
4 | (createDiagnostic↵ | 4 | (createDiagnostic↵ | |
5 | (Diagnostic.ERROR,↵ | 5 | (Diagnostic.ERROR,↵ | |
6 | DIAGNOSTIC_SOURCE,↵ | 6 | DIAGNOSTIC_SOURCE,↵ | |
7 | INTERFACE_IS_ABSTRACT,↵ | 7 | NO_CIRCULAR_SUPER_TYPES,↵ | |
8 | "_UI_EClassInterfaceNotAbstract_diagnostic",↵ | 8 | "_UI_EClassNoCircularSuperTypes_diagnostic",↵ | |
9 | null,↵ | 9 | null,↵ | |
10 | new Object[] { eClass },↵ | 10 | new Object[] { eClass },↵ | |
11 | context));↵ | 11 | context));↵ | |
12 | }↵ | 12 | }↵ | |
13 | return result; | 13 |
| |
See real code fragment | See real code fragment |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 5 |
Number of mapped statements | 3 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (!result && diagnostics != null) | 8 | if (!result && diagnostics != null) | ||||||||||||||
3 | diagnostics.add(createDiagnostic(Diagnostic.ERROR, DIAGNOSTIC_SOURCE, INTERFACE_IS_ABSTRACT, "_UI_EClassInterfaceNotAbstract_diagnostic", null, new Object[] {eClass}, context)); |
| 9 | diagnostics.add(createDiagnostic(Diagnostic.ERROR, DIAGNOSTIC_SOURCE, NO_CIRCULAR_SUPER_TYPES, "_UI_EClassNoCircularSuperTypes_diagnostic", null, new Object[] {eClass}, context)); | |||||||||||||
4 | return result; | 10 | return result; |
Row | Violation |
---|