File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/HeaderViewer.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/viewer/HeaderViewer.java | |||
Method name: JButton createLinkButton(JButton)
|
Method name: JButton createLabelButton(JButton)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | button.setBorder(LINK_BORDER);↵ | 1 | button.setBorder(LINK_BORDER);↵ | |
2 | button.setForeground(LINK_COLOR);↵ | 2 | button.setForeground(LABEL_COLOR);↵ | |
3 | button.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));↵ | 3 | button.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));↵ | |
4 | button.setFocusPainted(false);↵ | 4 | button.setFocusPainted(false);↵ | |
5 | button.setRequestFocusEnabled(false); | 5 |
| |
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 declared in the same class |
Number of node comparisons | 25 |
Number of mapped statements | 5 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | button.setBorder(LINK_BORDER); | 1 | button.setBorder(LINK_BORDER); | |||||||||||
2 | button.setForeground(LINK_COLOR); |
| 2 | button.setForeground(LABEL_COLOR); | ||||||||||
3 | button.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); | 3 | button.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); | |||||||||||
4 | button.setFocusPainted(false); | 4 | button.setFocusPainted(false); | |||||||||||
5 | button.setRequestFocusEnabled(false); | 5 | button.setRequestFocusEnabled(false); |
Row | Violation |
---|