File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/list/AddressbookDNDListView.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/contact/list/ContactDNDListView.java | |||
Method name: void dragGestureRecognized(DragGestureEvent)
|
Method name: void dragGestureRecognized(DragGestureEvent)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | if (selection2.length != 0) {↵ | 1 | if (selection2.length != 0) {↵ | |
2 | IBasicModelPartial[] items = new IBasicModelPartial[selection2.length];↵ | 2 | IHeaderItem[] items = new IHeaderItem[selection2.length];↵ | |
3 | items = selection2;↵ | 3 | items = selection2;↵ | |
4 | HeaderItemDNDManager.getInstance().setHeaderItemList(items);↵ | 4 | HeaderItemDNDManager.getInstance().setHeaderItemList(items);↵ | |
5 | } else {↵ | 5 | } else {↵ | |
6 | IBasicModelPartial[] items = new IBasicModelPartial[1];↵ | 6 | IHeaderItem[] items = new IHeaderItem[1];↵ | |
7 | items[0] = (IBasicModelPartial) getSelectedValue();↵ | 7 | items[0] = (IHeaderItem) getSelectedValue();↵ | |
8 | HeaderItemDNDManager.getInstance().setHeaderItemList(items);↵ | 8 | HeaderItemDNDManager.getInstance().setHeaderItemList(items);↵ | |
9 | } | 9 |
| |
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.4 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 52 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 4 |
Time elapsed for statement mapping (ms) | 6.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | if (selection2.length != 0) |
| 10 | if (selection2.length != 0) | |||||||||||||||||||||
|
| 11 | IHeaderItem[] items = new IHeaderItem[selection2.length]; | ||||||||||||||||||||||
11 | IBasicModelPartial[] items = new IBasicModelPartial[selection2.length]; |
| | ||||||||||||||||||||||
|
| 12 | items = selection2; | ||||||||||||||||||||||
12 | items = selection2; |
| | ||||||||||||||||||||||
13 | HeaderItemDNDManager.getInstance().setHeaderItemList(items); |
| 13 | HeaderItemDNDManager.getInstance().setHeaderItemList(items); | |||||||||||||||||||||
else | else | ||||||||||||||||||||||||
| 14 | IHeaderItem[] items = new IHeaderItem[1]; | |||||||||||||||||||||||
14 | IBasicModelPartial[] items = new IBasicModelPartial[1]; | | |||||||||||||||||||||||
| 15 | items[0] = (IHeaderItem)getSelectedValue(); | |||||||||||||||||||||||
15 | items[0] = (IBasicModelPartial)getSelectedValue(); | | |||||||||||||||||||||||
16 | HeaderItemDNDManager.getInstance().setHeaderItemList(items); |
| 16 | HeaderItemDNDManager.getInstance().setHeaderItemList(items); |
Row | Violation |
---|---|
1 | Type int of variable selection2.length does not match with type int of variable selection2.length |
2 | Unmatched statement IHeaderItem[] items=new IHeaderItem[selection2.length]; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Unmatched statement IBasicModelPartial[] items=new IBasicModelPartial[selection2.length]; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Unmatched statement items=selection2; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
5 | Unmatched statement items=selection2; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
6 | Type org.columba.addressbook.model.IBasicModelPartial[] of variable items does not match with type org.columba.addressbook.facade.IHeaderItem[] of variable items |
7 | Expression HeaderItemDNDManager.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression HeaderItemDNDManager.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Type org.columba.addressbook.gui.list.HeaderItemDNDManager of variable HeaderItemDNDManager.getInstance() does not match with type org.columba.mail.gui.contact.list.HeaderItemDNDManager of variable HeaderItemDNDManager.getInstance() |
10 | Type org.columba.addressbook.gui.list.HeaderItemDNDManager does not match with type org.columba.mail.gui.contact.list.HeaderItemDNDManager |
11 | Type org.columba.addressbook.model.IBasicModelPartial[] of variable items does not match with type org.columba.addressbook.facade.IHeaderItem[] of variable items |
12 | Expression HeaderItemDNDManager.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
13 | Expression HeaderItemDNDManager.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Type org.columba.addressbook.gui.list.HeaderItemDNDManager of variable HeaderItemDNDManager.getInstance() does not match with type org.columba.mail.gui.contact.list.HeaderItemDNDManager of variable HeaderItemDNDManager.getInstance() |
15 | Type org.columba.addressbook.gui.list.HeaderItemDNDManager does not match with type org.columba.mail.gui.contact.list.HeaderItemDNDManager |
16 | The refactoring of the clones is infeasible, because classes org.columba.addressbook.gui.list.AddressbookDNDListView and org.columba.mail.gui.contact.list.ContactDNDListView do not have a common superclass |