File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/impl/AnyTypeImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/impl/SimpleAnyTypeImpl.java | |||
Method name: boolean eIsSet(int)
|
Method name: boolean eIsSet(int)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | case XMLTypePackage.ANY_TYPE__MIXED:↵ | 1 | case XMLTypePackage.SIMPLE_ANY_TYPE__MIXED:↵ | |
2 | return mixed != null && !mixed.isEmpty();↵ | 2 | return mixed != null && !mixed.isEmpty();↵ | |
3 | case XMLTypePackage.ANY_TYPE__ANY:↵ | 3 | case XMLTypePackage.SIMPLE_ANY_TYPE__ANY:↵ | |
4 | return !getAny().isEmpty();↵ | 4 | return !getAny().isEmpty();↵ | |
5 | case XMLTypePackage.ANY_TYPE__ANY_ATTRIBUTE:↵ | 5 | case XMLTypePackage.SIMPLE_ANY_TYPE__ANY_ATTRIBUTE:↵ | |
6 | return anyAttribute != null && !anyAttribute.isEmpty(); | 6 |
| |
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 in different classes having the same super class |
Number of node comparisons | 24 |
Number of mapped statements | 6 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | case XMLTypePackage.ANY_TYPE__MIXED: |
| 2 | case XMLTypePackage.SIMPLE_ANY_TYPE__MIXED: | ||||||||||
3 | return mixed != null && !mixed.isEmpty(); | 3 | return mixed != null && !mixed.isEmpty(); | |||||||||||
4 | case XMLTypePackage.ANY_TYPE__ANY: |
| 4 | case XMLTypePackage.SIMPLE_ANY_TYPE__ANY: | ||||||||||
5 | return !getAny().isEmpty(); | 5 | return !getAny().isEmpty(); | |||||||||||
6 | case XMLTypePackage.ANY_TYPE__ANY_ATTRIBUTE: |
| 6 | case XMLTypePackage.SIMPLE_ANY_TYPE__ANY_ATTRIBUTE: | ||||||||||
7 | return anyAttribute != null && !anyAttribute.isEmpty(); | 7 | return anyAttribute != null && !anyAttribute.isEmpty(); |
Row | Violation |
---|