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 DynamicEDataTypeValidator(EDataType)
|
Method name: void DynamicEDataTypeValidator(EDataType)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | effectiveMax = extendedMetaData.getMaxExclusiveFacet(eDataType);↵ | 1 | effectiveMin = extendedMetaData.getMinExclusiveFacet(eDataType);↵ | |
2 | if (effectiveMax == null)↵ | 2 | if (effectiveMin == null)↵ | |
3 | {↵ | 3 | {↵ | |
4 | effectiveMax = extendedMetaData.getMaxInclusiveFacet(eDataType);↵ | 4 | effectiveMin = extendedMetaData.getMinInclusiveFacet(eDataType);↵ | |
5 | if (effectiveMax != null)↵ | 5 | if (effectiveMin != null)↵ | |
6 | {↵ | 6 | {↵ | |
7 | effectiveMax = EcoreUtil.createFromString(eDataType, (String)effectiveMax);↵ | 7 | effectiveMin = EcoreUtil.createFromString(eDataType, (String)effectiveMin);↵ | |
8 | effectiveMaxIsInclusive = true;↵ | 8 | effectiveMinIsInclusive = true;↵ | |
9 | }↵ | 9 | }↵ | |
10 | }↵ | 10 | }↵ | |
11 | else↵ | 11 | else↵ | |
12 | {↵ | 12 | {↵ | |
13 | effectiveMax = EcoreUtil.createFromString(eDataType, (String)effectiveMax);↵ | 13 | effectiveMin = EcoreUtil.createFromString(eDataType, (String)effectiveMin);↵ | |
14 | effectiveMaxIsInclusive = false;↵ | 14 | effectiveMinIsInclusive = false;↵ | |
15 | } | 15 |
| |
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.2 |
Clones location | Clones are in the same method |
Number of node comparisons | 28 |
Number of mapped statements | 8 |
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) | 195.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46 | effectiveMax = extendedMetaData.getMaxExclusiveFacet(eDataType); |
| 37 | effectiveMin = extendedMetaData.getMinExclusiveFacet(eDataType); | |||||||||||||||||||
47 | if (effectiveMax == null) |
| 38 | if (effectiveMin == null) | |||||||||||||||||||
48 | effectiveMax = extendedMetaData.getMaxInclusiveFacet(eDataType); |
| 39 | effectiveMin = extendedMetaData.getMinInclusiveFacet(eDataType); | |||||||||||||||||||
49 | if (effectiveMax != null) |
| 40 | if (effectiveMin != null) | |||||||||||||||||||
50 | effectiveMax = EcoreUtil.createFromString(eDataType, (String)effectiveMax); |
| 41 | effectiveMin = EcoreUtil.createFromString(eDataType, (String)effectiveMin); | |||||||||||||||||||
51 | effectiveMaxIsInclusive = true; |
| 42 | effectiveMinIsInclusive = true; | |||||||||||||||||||
else | else | ||||||||||||||||||||||
52 | effectiveMax = EcoreUtil.createFromString(eDataType, (String)effectiveMax); |
| 43 | effectiveMin = EcoreUtil.createFromString(eDataType, (String)effectiveMin); | |||||||||||||||||||
53 | effectiveMaxIsInclusive = false; |
| 44 | effectiveMinIsInclusive = false; |
Row | Violation |
---|---|
1 | Expression effectiveMax is a field being modified, and thus it cannot be parameterized |
2 | Expression effectiveMin is a field being modified, and thus it cannot be parameterized |
3 | Expression effectiveMax cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression effectiveMin cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression effectiveMax is a field being modified, and thus it cannot be parameterized |
6 | Expression effectiveMin is a field being modified, and thus it cannot be parameterized |
7 | Expression extendedMetaData.getMaxInclusiveFacet(eDataType) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression extendedMetaData.getMinInclusiveFacet(eDataType) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression effectiveMax cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression effectiveMin cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression effectiveMax cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression effectiveMin cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression effectiveMax is a field being modified, and thus it cannot be parameterized |
14 | Expression effectiveMin is a field being modified, and thus it cannot be parameterized |
15 | Expression effectiveMax cannot be parameterized, because it has dependencies to/from statements that will be extracted |
16 | Expression effectiveMin cannot be parameterized, because it has dependencies to/from statements that will be extracted |
17 | Expression effectiveMaxIsInclusive is a field being modified, and thus it cannot be parameterized |
18 | Expression effectiveMinIsInclusive is a field being modified, and thus it cannot be parameterized |
19 | Expression effectiveMax cannot be parameterized, because it has dependencies to/from statements that will be extracted |
20 | Expression effectiveMin cannot be parameterized, because it has dependencies to/from statements that will be extracted |
21 | Expression effectiveMax is a field being modified, and thus it cannot be parameterized |
22 | Expression effectiveMin is a field being modified, and thus it cannot be parameterized |
23 | Expression effectiveMax cannot be parameterized, because it has dependencies to/from statements that will be extracted |
24 | Expression effectiveMin cannot be parameterized, because it has dependencies to/from statements that will be extracted |
25 | Expression effectiveMaxIsInclusive is a field being modified, and thus it cannot be parameterized |
26 | Expression effectiveMinIsInclusive is a field being modified, and thus it cannot be parameterized |