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: 8 | Number of AST nodes: 8 | |||
1 | if (selection1 == null) {↵ | 1 | if (selection1 == null) {↵ | |
2 | IBasicModelPartial[] items = new IBasicModelPartial[1];↵ | 2 | IHeaderItem[] items = new IHeaderItem[1];↵ | |
3 | items[0] = (IBasicModelPartial) getSelectedValue();↵ | 3 | items[0] = (IHeaderItem) getSelectedValue();↵ | |
4 | HeaderItemDNDManager.getInstance().setHeaderItemList(items);↵ | 4 | HeaderItemDNDManager.getInstance().setHeaderItemList(items);↵ | |
5 | } else if (selection1.length != 0) {↵ | 5 | } else if (selection1.length != 0) {↵ | |
6 | IBasicModelPartial[] items = new IBasicModelPartial[selection1.length];↵ | 6 | IHeaderItem[] items = new IHeaderItem[selection1.length];↵ | |
7 | items = selection1;↵ | 7 | items = selection1;↵ | |
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 | 50 |
Number of mapped statements | 4 |
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) | 5.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (selection1 == null) |
| 2 | if (selection1 == null) | |||||||||||||||||||||
| 3 | IHeaderItem[] items = new IHeaderItem[1]; | |||||||||||||||||||||||
3 | IBasicModelPartial[] items = new IBasicModelPartial[1]; | | |||||||||||||||||||||||
| 4 | items[0] = (IHeaderItem)getSelectedValue(); | |||||||||||||||||||||||
4 | items[0] = (IBasicModelPartial)getSelectedValue(); | | |||||||||||||||||||||||
5 | HeaderItemDNDManager.getInstance().setHeaderItemList(items); |
| 5 | HeaderItemDNDManager.getInstance().setHeaderItemList(items); | |||||||||||||||||||||
6 | else if (selection1.length != 0) |
| 6 | else if (selection1.length != 0) | |||||||||||||||||||||
|
| 7 | IHeaderItem[] items = new IHeaderItem[selection1.length]; | ||||||||||||||||||||||
7 | IBasicModelPartial[] items = new IBasicModelPartial[selection1.length]; |
| | ||||||||||||||||||||||
|
| 8 | items = selection1; | ||||||||||||||||||||||
8 | items = selection1; |
| | ||||||||||||||||||||||
9 | HeaderItemDNDManager.getInstance().setHeaderItemList(items); |
| 9 | HeaderItemDNDManager.getInstance().setHeaderItemList(items); |
Row | Violation |
---|---|
1 | Type org.columba.addressbook.model.IBasicModelPartial[] of variable selection1 does not match with type org.columba.addressbook.facade.IHeaderItem[] of variable selection1 |
2 | Type org.columba.addressbook.model.IBasicModelPartial[] of variable items does not match with type org.columba.addressbook.facade.IHeaderItem[] of variable items |
3 | Expression HeaderItemDNDManager.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression HeaderItemDNDManager.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | 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() |
6 | Type org.columba.addressbook.gui.list.HeaderItemDNDManager does not match with type org.columba.mail.gui.contact.list.HeaderItemDNDManager |
7 | Type int of variable selection1.length does not match with type int of variable selection1.length |
8 | Unmatched statement IHeaderItem[] items=new IHeaderItem[selection1.length]; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
9 | Unmatched statement IBasicModelPartial[] items=new IBasicModelPartial[selection1.length]; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
10 | Unmatched statement items=selection1; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
11 | Unmatched statement items=selection1; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
12 | Type org.columba.addressbook.model.IBasicModelPartial[] of variable items does not match with type org.columba.addressbook.facade.IHeaderItem[] of variable items |
13 | Expression HeaderItemDNDManager.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
14 | Expression HeaderItemDNDManager.getInstance() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
15 | 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() |
16 | Type org.columba.addressbook.gui.list.HeaderItemDNDManager does not match with type org.columba.mail.gui.contact.list.HeaderItemDNDManager |
17 | 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 |