File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProvider.java | |||
Method name: void ItemProvider(String, Object, Object)
|
Method name: void ItemProvider(AdapterFactory, Collection>)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | this.text = text;↵ | 1 | this.↵ | |
2 | this.image = image;↵ | |||
3 | this.parent = parent↵ | 2 | adapterFactory = adapterFactory;↵ | |
4 | ;↵ | 3 | this.text = "";↵ | |
5 | this.children = new ItemProviderNotifyingArrayList<Object>(); | 4 | this.children = new ItemProviderNotifyingArrayList<Object>(children); | |
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 declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | this.adapterFactory = adapterFactory; | ||||||||||||
1 | this.text = text; |
| 2 | this.text = ""; | ||||||||||
2 | this.image = image; | | ||||||||||||
3 | this.parent = parent; | | ||||||||||||
4 | this.children = new ItemProviderNotifyingArrayList<Object>(); |
| 3 | this.children = new ItemProviderNotifyingArrayList<Object>(children); |
Row | Violation |
---|