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: 8 | Number of AST nodes: 8 | |||
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);↵ | |
6 | ↵ | 6 | button.setContentAreaFilled(false);↵ | |
7 | button.setText("<html><u>" + button.getText() + "</u></html>");↵ | 7 | button.setText("<html><u>" + button.getText() + "</u></html>");↵ | |
8 | button.setContentAreaFilled(false);↵ | 8 | ↵ | |
9 | // button.addMouseListener(new LinkMouseListener());↵ | 9 | // button.addMouseListener(new LabelMouseListener());↵ | |
10 | return button; | 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 declared in the same class |
Number of node comparisons | 64 |
Number of mapped statements | 8 |
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); | |||||||||||
6 | button.setText("<html><u>" + button.getText() + "</u></html>"); | 7 | button.setText("<html><u>" + button.getText() + "</u></html>"); | |||||||||||
7 | button.setContentAreaFilled(false); | 6 | button.setContentAreaFilled(false); | |||||||||||
8 | return button; | 8 | return button; |
Row | Violation |
---|