File path: /emf-2.4.1/src/org/eclipse/emf/ecore/provider/EPackageItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProviderAdapter.java | |||
Method name: List
|
Method name: Collection extends EReference> getChildrenReferences(Object)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 3 | |||
1 | if (itemPropertyDescriptors == null)↵ | 1 | if (childrenReferences == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | super.getPropertyDescriptors(object);↵ | 3 | ↵ | |
4 | addNsURIPropertyDescriptor(object);↵ | |||
5 | addNsPrefixPropertyDescriptor(object);↵ | |||
6 | addEFactoryInstancePropertyDescriptor(object);↵ | |||
7 | }↵ | |||
8 | return itemPropertyDescriptor↵ | 4 | childrenReferences = new ArrayList<EReference>();↵ | |
5 | }↵ | |||
9 | s; | 6 | return childrenReferences; | |
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 11 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 5 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.4 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (itemPropertyDescriptors == null) |
| 1 | if (childrenReferences == null) | ||||||||||||||
| 2 | childrenReferences = new ArrayList<EReference>(); | ||||||||||||||||
2 | super.getPropertyDescriptors(object); | | ||||||||||||||||
3 | addNsURIPropertyDescriptor(object); | | ||||||||||||||||
4 | addNsPrefixPropertyDescriptor(object); | | ||||||||||||||||
5 | addEFactoryInstancePropertyDescriptor(object); | | ||||||||||||||||
|
| 3 | return childrenReferences; | |||||||||||||||
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.EReference> of variable childrenReferences |
2 | Unmatched return childrenReferences; |
3 | Unmatched return itemPropertyDescriptors; |