File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/box/CalendarBox.java | File path: /columba-1.4-src/contact/src/main/java/org/columba/contact/gui/box/ContactBox.java | |||
Method name: void CalendarBox()
|
Method name: void ContactBox()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | list.addMouseListener(new DoubleClickListener() {↵ | 1 | list.addMouseListener(new DoubleClickListener() {↵ | |
2 | @Override↵ | 2 | @Override↵ | |
3 | public void doubleClick(MouseEvent event) {↵ | 3 | public void doubleClick(MouseEvent event) {↵ | |
4 | IEventInfo selected = (IEventInfo) list↵ | 4 | IContactModelPartial selected = (IContactModelPartial) list↵ | |
5 | .getSelectedValue();↵ | 5 | .getSelectedValue();↵ | |
6 | openEditCalendarEventDialog(selected);↵ | 6 | openEditContactDialog(selected);↵ | |
7 | }↵ | 7 | }↵ | |
8 | });↵ | 8 | });↵ | |
9 | list.add(getPopupMenu());↵ | 9 | list.add(getPopupMenu());↵ | |
10 | list.addMouseListener(new MyMouseListener()); | 10 |
| |
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 in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
| 14 | list.addMouseListener(new DoubleClickListener() {...}); | ||||||||||||||
13 | list.addMouseListener(new DoubleClickListener() {...}); |
| 16 | list.addMouseListener(new MyMouseListener()); | |||||||||||||
14 | list.add(getPopupMenu()); |
| | ||||||||||||||
|
| 15 | list.add(getPopupMenu()); | ||||||||||||||
15 | list.addMouseListener(new MyMouseListener()); |
| |
Row | Violation |
---|---|
1 | Unmatched statement list.addMouseListener(new DoubleClickListener(){ @Override public void doubleClick( MouseEvent event){ IContactModelPartial selected=(IContactModelPartial)list.getSelectedValue(); openEditContactDialog(selected); } } ); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement list.add(getPopupMenu()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Unmatched statement list.add(getPopupMenu()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Unmatched statement list.addMouseListener(new MyMouseListener()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |