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.3 |
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) | 2.0 |
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 | 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() |
4 | Type org.columba.addressbook.gui.list.HeaderItemDNDManager of variable HeaderItemDNDManager does not match with type org.columba.mail.gui.contact.list.HeaderItemDNDManager of variable HeaderItemDNDManager |
5 | Type org.columba.addressbook.model.IBasicModelPartial[] of variable selection1 does not match with type org.columba.addressbook.facade.IHeaderItem[] of variable selection1 |
6 | Type org.columba.addressbook.model.IBasicModelPartial[] of variable items does not match with type org.columba.addressbook.facade.IHeaderItem[] of variable items |
7 | 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() |
8 | Type org.columba.addressbook.gui.list.HeaderItemDNDManager of variable HeaderItemDNDManager does not match with type org.columba.mail.gui.contact.list.HeaderItemDNDManager of variable HeaderItemDNDManager |