File path: /emf-2.4.1/src/org/eclipse/emf/ecore/change/util/ChangeRecorder.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/ECrossReferenceAdapter.java | |||
Method name: void addAdapter(Notifier)
|
Method name: void addAdapter(Notifier)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | EList<Adapter> eAdapters = notifier.eAdapters();↵ | 1 | List<Adapter> eAdapters = notifier.eAdapters();↵ | |
2 | if (!eAdapters.contains(this))↵ | 2 | if (!eAdapters.contains(this))↵ | |
3 | {↵ | 3 | {↵ | |
4 | eAdapters.add(this);↵ | 4 | eAdapters.add(this);↵ | |
5 | } | 5 |
| |
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | List<Adapter> eAdapters = notifier.eAdapters(); | |||||||||||||
2 | EList<Adapter> eAdapters = notifier.eAdapters(); | | |||||||||||||
3 | if (!eAdapters.contains(this)) |
| 2 | if (!eAdapters.contains(this)) | |||||||||||
4 | eAdapters.add(this); |
| 3 | eAdapters.add(this); |
Row | Violation |
---|---|
1 | Type org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> of variable eAdapters does not match with type java.util.List<org.eclipse.emf.common.notify.Adapter> of variable eAdapters |
2 | Type org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> of variable eAdapters does not match with type java.util.List<org.eclipse.emf.common.notify.Adapter> of variable eAdapters |