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 reportMinLengthViolation(EDataType, Object, int, int, DiagnosticChain, Map
|
Method name: void reportMaxLengthViolation(EDataType, Object, int, 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__LENGTH_IN_RANGE,↵ | 5 | DATA_VALUE__LENGTH_IN_RANGE,↵ | |
6 | "_UI_MinLengthConstraint_diagnostic",↵ | 6 | "_UI_MaxLengthConstraint_diagnostic",↵ | |
7 | new Object []↵ | 7 | new Object []↵ | |
8 | {↵ | 8 | {↵ | |
9 | getValueLabel(eDataType, value, context),↵ | 9 | getValueLabel(eDataType, value, context),↵ | |
10 | Integer.toString(length),↵ | 10 | Integer.toString(length),↵ | |
11 | Integer.toString(bound)↵ | 11 | Integer.toString(bound)↵ | |
12 | },↵ | 12 | },↵ | |
13 | new Object [] { value, eDataType, length, bound },↵ | 13 | new Object [] { value, eDataType, length, bound },↵ | |
14 | context)); | 14 |
| |
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__LENGTH_IN_RANGE, "_UI_MinLengthConstraint_diagnostic", new Object[] {getValueLabel(eDataType, value, context), Integer.toString(length), Integer.toString(bound)}, new Object[] {value, eDataType, length, bound}, context)); |
| 1 | diagnostics.add(createDiagnostic(Diagnostic.ERROR, DIAGNOSTIC_SOURCE, DATA_VALUE__LENGTH_IN_RANGE, "_UI_MaxLengthConstraint_diagnostic", new Object[] {getValueLabel(eDataType, value, context), Integer.toString(length), Integer.toString(bound)}, new Object[] {value, eDataType, length, bound}, context)); |
Row | Violation |
---|