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: void reportTotalDigitsViolation(EDataType, Object, int, DiagnosticChain, Map
|
Method name: void reportFractionDigitsViolation(EDataType, Object, int, DiagnosticChain, Map
|
|||
Number of AST nodes: 1 | Number of AST nodes: 1 | |||
1 | diagnostics.add↵ | 1 | diagnostics.add↵ | |
2 | (createDiagnostic↵ | 2 | (createDiagnostic↵ | |
3 | (Diagnostic.ERROR,↵ | 3 | (Diagnostic.ERROR,↵ | |
4 | DIAGNOSTIC_SOURCE,↵ | 4 | DIAGNOSTIC_SOURCE,↵ | |
5 | DATA_VALUE__TOTAL_DIGITS_IN_RANGE,↵ | 5 | DATA_VALUE__TOTAL_DIGITS_IN_RANGE,↵ | |
6 | "_UI_TotalDigitsConstraint_diagnostic",↵ | 6 | "_UI_FractionDigitsConstraint_diagnostic",↵ | |
7 | new Object []↵ | 7 | new Object []↵ | |
8 | {↵ | 8 | {↵ | |
9 | getValueLabel(eDataType, value, context),↵ | 9 | getValueLabel(eDataType, value, context),↵ | |
10 | totalDigits↵ | 10 | fractionDigits↵ | |
11 | },↵ | 11 | },↵ | |
12 | new Object [] { value, eDataType, totalDigits },↵ | 12 | new Object [] { value, eDataType, fractionDigits },↵ | |
13 | context)); | 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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | diagnostics.add(createDiagnostic(Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__TOTAL_DIGITS_IN_RANGE, "_UI_TotalDigitsConstraint_diagnostic", new Object[] {getValueLabel(eDataType, value, context), totalDigits}, new Object[] {value, eDataType, totalDigits}, context)); |
| 1 | diagnostics.add(createDiagnostic(Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__TOTAL_DIGITS_IN_RANGE, "_UI_FractionDigitsConstraint_diagnostic", new Object[] {getValueLabel(eDataType, value, context), fractionDigits}, new Object[] {value, eDataType, fractionDigits}, context)); |
Row | Violation |
---|