File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/search/GenericResultPanel.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/search/GenericResultPanel.java | |||
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
|
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | setBackground(list.getBackground());↵ | 1 | setBackground(list.getSelectionBackground());↵ | |
2 | setForeground(list.getForeground());↵ | 2 | setForeground(list.getSelectionForeground());↵ | |
3 | topPanel.setBackground(list.getBackground());↵ | 3 | topPanel.setBackground(list.getSelectionBackground());↵ | |
4 | topPanel.setForeground(list.getForeground()); | 4 | topPanel.setForeground(list.getSelectionForeground()); | |
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 the same method |
Number of node comparisons | 16 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6 | setBackground(list.getBackground()); |
| 2 | setBackground(list.getSelectionBackground()); | ||||||||||
7 | setForeground(list.getForeground()); |
| 3 | setForeground(list.getSelectionForeground()); | ||||||||||
8 | topPanel.setBackground(list.getBackground()); |
| 4 | topPanel.setBackground(list.getSelectionBackground()); | ||||||||||
9 | topPanel.setForeground(list.getForeground()); |
| 5 | topPanel.setForeground(list.getSelectionForeground()); |
Row | Violation |
---|