File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/columns/ColumnConfigDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/AddressListDialog.java | |||
Method name: void valueChanged(ListSelectionEvent)
|
Method name: void valueChanged(ListSelectionEvent)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 6 | |||
1 | if (e.getValueIsAdjusting()) {↵ | 1 | if (e.getValueIsAdjusting()) {↵ | |
2 | return;↵ | 2 | return;↵ | |
3 | }↵ | 3 | }↵ | |
4 | DefaultListSelectionModel theList = (DefaultListSelectionModel) e↵ | 4 | DefaultListSelectionModel theList = (DefaultListSelectionModel) e↵ | |
5 | .getSource();↵ | 5 | .getSource();↵ | |
6 | if (!theList.isSelectionEmpty()) {↵ | 6 | if (!theList.isSelectionEmpty()) {↵ | |
7 | index = theList.getAnchorSelectionIndex();↵ | 7 | index = theList.getAnchorSelectionIndex();↵ | |
8 | selection = (CheckableItemImpl) ((CheckableItemListTableModel) list↵ | 8 | selection = (CheckableItemImpl) ((CheckableItemListTableModel) list↵ | |
9 | .getModel()).getElement(index);↵ | 9 | .getModel()).getElement(index);↵ | |
10 | updateButtonState();↵ | 10 | ↵ | |
11 | } | 11 |
| |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 24 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.9 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | if (e.getValueIsAdjusting()) | 1 | if (e.getValueIsAdjusting()) | |
2 | return; | 2 | return; | |
3 | DefaultListSelectionModel theList = (DefaultListSelectionModel)e.getSource(); | 3 | DefaultListSelectionModel theList = (DefaultListSelectionModel)e.getSource(); | |
4 | if (!theList.isSelectionEmpty()) | 4 | if (!theList.isSelectionEmpty()) | |
5 | index = theList.getAnchorSelectionIndex(); | 5 | index = theList.getAnchorSelectionIndex(); | |
6 | selection = (CheckableItemImpl)((CheckableItemListTableModel)list.getModel()).getElement(index); | 6 | selection = (CheckableItemImpl)((CheckableItemListTableModel)list.getModel()).getElement(index); | |
7 | updateButtonState(); | |
Row | Violation |
---|