File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/search/SearchResultList.java | File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/box/CalendarList.java | |||
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
|
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (isSelected) {↵ | 1 | if (isSelected) {↵ | |
2 | setBackground(list.getSelectionBackground());↵ | 2 | setBackground(list.getSelectionBackground());↵ | |
3 | setForeground(list.getSelectionForeground());↵ | 3 | setForeground(list.getSelectionForeground());↵ | |
4 | } else {↵ | 4 | } else {↵ | |
5 | setBackground(list.getBackground());↵ | 5 | setBackground(list.getBackground());↵ | |
6 | setForeground(list.getForeground());↵ | 6 | setForeground(list.getForeground());↵ | |
7 | }↵ | 7 | }↵ | |
8 | ISearchResult result = (ISearchResult) value; | 8 | IEventInfo result = (IEventInfo) value; | |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 26 |
Number of mapped statements | 5 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 1.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | if (isSelected) | 1 | if (isSelected) | |
2 | setBackground(list.getSelectionBackground()); | 2 | setBackground(list.getSelectionBackground()); | |
3 | setForeground(list.getSelectionForeground()); | 3 | setForeground(list.getSelectionForeground()); | |
else | else | |||
4 | setBackground(list.getBackground()); | 4 | setBackground(list.getBackground()); | |
5 | setForeground(list.getForeground()); | 5 | setForeground(list.getForeground()); | |
| 6 | IEventInfo result = (IEventInfo)value; | ||
6 | ISearchResult result = (ISearchResult)value; | |
Row | Violation |
---|