File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/provider/XMLInfoItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/provider/ResourceChangeItemProvider.java | |||
Method name: List
|
Method name: Collection extends EStructuralFeature> getChildrenFeatures(Object)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 4 | |||
1 | if (itemPropertyDescriptors == null)↵ | 1 | if (childrenFeatures == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | super.getPropertyDescriptors(object);↵ | 3 | super.getChildrenFeatures(object);↵ | |
4 | addNamePropertyDescriptor(object);↵ | 4 | ↵ | |
5 | addTargetNamespacePropertyDescriptor(object);↵ | |||
6 | addXMLRepresentationPropertyDescriptor(object);↵ | |||
7 | }↵ | |||
8 | return itemPropertyDescriptor↵ | 5 | childrenFeatures.add(ChangePackage.Literals.RESOURCE_CHANGE__LIST_CHANGES);↵ | |
6 | }↵ | |||
9 | s; | 7 | return childrenFeatures; | |
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 | 16 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 5 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 0.8 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (itemPropertyDescriptors == null) |
| 1 | if (childrenFeatures == null) | ||||||||||||||
| 2 | super.getChildrenFeatures(object); | ||||||||||||||||
2 | super.getPropertyDescriptors(object); | | ||||||||||||||||
| 3 | childrenFeatures.add(ChangePackage.Literals.RESOURCE_CHANGE__LIST_CHANGES); | ||||||||||||||||
3 | addNamePropertyDescriptor(object); | | ||||||||||||||||
4 | addTargetNamespacePropertyDescriptor(object); | | ||||||||||||||||
5 | addXMLRepresentationPropertyDescriptor(object); | | ||||||||||||||||
|
| 4 | return childrenFeatures; | |||||||||||||||
6 | return itemPropertyDescriptors; |
| |
Row | Violation |
---|---|
1 | Type java.util.List<org.eclipse.emf.edit.provider.IItemPropertyDescriptor> of variable itemPropertyDescriptors does not match with type java.util.List<org.eclipse.emf.ecore.EStructuralFeature> of variable childrenFeatures |
2 | Unmatched return childrenFeatures; |
3 | Unmatched return itemPropertyDescriptors; |