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: void report(DiagnosticChain, String, Object[], int, Map
|
Method name: void report(DiagnosticChain, String, int)
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | if (diagnostics != null)↵ | 1 | if (diagnostics != null)↵ | |
2 | {↵ | 2 | ↵ | |
3 | {↵ | |||
3 | diagnostics.add↵ | 4 | diagnostics.add↵ | |
4 | (new BasicDiagnostic↵ | 5 | (new BasicDiagnostic↵ | |
5 | (Diagnostic.ERROR,↵ | 6 | (Diagnostic.ERROR,↵ | |
6 | DIAGNOSTIC_SOURCE,↵ | 7 | DIAGNOSTIC_SOURCE,↵ | |
7 | WELL_FORMED_INSTANCE_TYPE_NAME,↵ | 8 | WELL_FORMED_INSTANCE_TYPE_NAME,↵ | |
8 | getString(key, substitutions),↵ | 9 | ↵ | |
10 | message, ↵ | |||
9 | new Object [] { index }));↵ | 11 | new Object [] { index }));↵ | |
10 | } | 12 | } | |
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.1 |
Clones location | Clones are in the same java file |
Number of node comparisons | 4 |
Number of mapped statements | 2 |
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) | 903.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (diagnostics != null) | 1 | if (diagnostics != null) | |||||||||||
2 | diagnostics.add(new BasicDiagnostic(Diagnostic.ERROR, DIAGNOSTIC_SOURCE, WELL_FORMED_INSTANCE_TYPE_NAME, getString(key, substitutions), new Object[] {index})); |
| 2 | diagnostics.add(new BasicDiagnostic(Diagnostic.ERROR, DIAGNOSTIC_SOURCE, WELL_FORMED_INSTANCE_TYPE_NAME, message, new Object[] {index})); |
Row | Violation |
---|