File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EEnumImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EDataTypeImpl.java | |||
Method name: boolean eIsSet(int)
|
Method name: boolean eIsSet(int)
|
|||
Number of AST nodes: 22 | Number of AST nodes: 20 | |||
1 | switch (featureID)↵ | 1 | switch (featureID)↵ | |
2 | {↵ | 2 | {↵ | |
3 | case EcorePackage.EENUM__EANNOTATIONS:↵ | 3 | case EcorePackage.EDATA_TYPE__EANNOTATIONS:↵ | |
4 | return eAnnotations != null && !eAnnotations.isEmpty();↵ | 4 | return eAnnotations != null && !eAnnotations.isEmpty();↵ | |
5 | case EcorePackage.EENUM__NAME:↵ | 5 | case EcorePackage.EDATA_TYPE__NAME:↵ | |
6 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);↵ | 6 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name);↵ | |
7 | case EcorePackage.EENUM__INSTANCE_CLASS_NAME:↵ | 7 | case EcorePackage.EDATA_TYPE__INSTANCE_CLASS_NAME:↵ | |
8 | return isSetInstanceClassName();↵ | 8 | return isSetInstanceClassName();↵ | |
9 | case EcorePackage.EENUM__INSTANCE_CLASS:↵ | 9 | case EcorePackage.EDATA_TYPE__INSTANCE_CLASS:↵ | |
10 | return getInstanceClass() != null;↵ | 10 | return getInstanceClass() != null;↵ | |
11 | case EcorePackage.EENUM__DEFAULT_VALUE:↵ | 11 | case EcorePackage.EDATA_TYPE__DEFAULT_VALUE:↵ | |
12 | return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue());↵ | 12 | return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue());↵ | |
13 | case EcorePackage.EENUM__INSTANCE_TYPE_NAME:↵ | 13 | case EcorePackage.EDATA_TYPE__INSTANCE_TYPE_NAME:↵ | |
14 | return isSetInstanceTypeName();↵ | 14 | return isSetInstanceTypeName();↵ | |
15 | case EcorePackage.EENUM__EPACKAGE:↵ | 15 | case EcorePackage.EDATA_TYPE__EPACKAGE:↵ | |
16 | return basicGetEPackage() != null;↵ | 16 | return basicGetEPackage() != null;↵ | |
17 | case EcorePackage.EENUM__ETYPE_PARAMETERS:↵ | 17 | case EcorePackage.EDATA_TYPE__ETYPE_PARAMETERS:↵ | |
18 | return eTypeParameters != null && !eTypeParameters.isEmpty();↵ | 18 | return eTypeParameters != null && !eTypeParameters.isEmpty();↵ | |
19 | case EcorePackage.EENUM__SERIALIZABLE:↵ | 19 | case EcorePackage.EDATA_TYPE__SERIALIZABLE:↵ | |
20 | return ((eFlags & SERIALIZABLE_EFLAG) != 0) != SERIALIZABLE_EDEFAULT;↵ | 20 | return ((eFlags & SERIALIZABLE_EFLAG) != 0) != SERIALIZABLE_EDEFAULT;↵ | |
21 | case EcorePackage.EENUM__ELITERALS:↵ | |||
22 | return eLiterals != null && !eLiterals.isEmpty();↵ | |||
23 | }↵ | 21 | }↵ | |
24 | return eDynamicIsSet(featureID); | 22 |
| |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 182 |
Number of mapped statements | 20 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 9.2 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | switch (featureID) | 1 | switch (featureID) | |||||||||||
2 | case EcorePackage.EENUM__EANNOTATIONS: |
| 2 | case EcorePackage.EDATA_TYPE__EANNOTATIONS: | ||||||||||
3 | return eAnnotations != null && !eAnnotations.isEmpty(); | 3 | return eAnnotations != null && !eAnnotations.isEmpty(); | |||||||||||
4 | case EcorePackage.EENUM__NAME: |
| 4 | case EcorePackage.EDATA_TYPE__NAME: | ||||||||||
5 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | 5 | return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); | |||||||||||
6 | case EcorePackage.EENUM__INSTANCE_CLASS_NAME: |
| 6 | case EcorePackage.EDATA_TYPE__INSTANCE_CLASS_NAME: | ||||||||||
7 | return isSetInstanceClassName(); | 7 | return isSetInstanceClassName(); | |||||||||||
8 | case EcorePackage.EENUM__INSTANCE_CLASS: |
| 8 | case EcorePackage.EDATA_TYPE__INSTANCE_CLASS: | ||||||||||
9 | return getInstanceClass() != null; | 9 | return getInstanceClass() != null; | |||||||||||
10 | case EcorePackage.EENUM__DEFAULT_VALUE: |
| 10 | case EcorePackage.EDATA_TYPE__DEFAULT_VALUE: | ||||||||||
11 | return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue()); | 11 | return DEFAULT_VALUE_EDEFAULT == null ? getDefaultValue() != null : !DEFAULT_VALUE_EDEFAULT.equals(getDefaultValue()); | |||||||||||
12 | case EcorePackage.EENUM__INSTANCE_TYPE_NAME: |
| 12 | case EcorePackage.EDATA_TYPE__INSTANCE_TYPE_NAME: | ||||||||||
13 | return isSetInstanceTypeName(); | 13 | return isSetInstanceTypeName(); | |||||||||||
14 | case EcorePackage.EENUM__EPACKAGE: |
| 14 | case EcorePackage.EDATA_TYPE__EPACKAGE: | ||||||||||
15 | return basicGetEPackage() != null; | 15 | return basicGetEPackage() != null; | |||||||||||
16 | case EcorePackage.EENUM__ETYPE_PARAMETERS: |
| 16 | case EcorePackage.EDATA_TYPE__ETYPE_PARAMETERS: | ||||||||||
17 | return eTypeParameters != null && !eTypeParameters.isEmpty(); | 17 | return eTypeParameters != null && !eTypeParameters.isEmpty(); | |||||||||||
18 | case EcorePackage.EENUM__SERIALIZABLE: |
| 18 | case EcorePackage.EDATA_TYPE__SERIALIZABLE: | ||||||||||
19 | return ((eFlags & SERIALIZABLE_EFLAG) != 0) != SERIALIZABLE_EDEFAULT; | 19 | return ((eFlags & SERIALIZABLE_EFLAG) != 0) != SERIALIZABLE_EDEFAULT; | |||||||||||
20 | case EcorePackage.EENUM__ELITERALS: | | ||||||||||||
21 | return eLiterals != null && !eLiterals.isEmpty(); |
| | |||||||||||
22 | return eDynamicIsSet(featureID); | 20 | return eDynamicIsSet(featureID); |
Row | Violation |
---|---|
1 | Unmatched return eLiterals != null && !eLiterals.isEmpty(); |