File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/SpecialFoldersPanel.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/account/SpecialFoldersPanel.java | |||
Method name: void initComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | trashLabel = new LabelWithMnemonic(MailResourceLoader.getString(↵ | 1 | inboxLabel = new LabelWithMnemonic(MailResourceLoader.getString(↵ | |
2 | "dialog", "account", "trash_folder")); //$NON-NLS-1$ ↵ | 2 | "dialog", "account", "inbox_folder")); //$NON-NLS-1$↵ | |
3 | trashButton = new JButton();↵ | 3 | inboxButton = new JButton();↵ | |
4 | trashButton.setActionCommand("TRASH"); //$NON-NLS-1$↵ | 4 | inboxButton.setActionCommand("INBOX"); //$NON-NLS-1$↵ | |
5 | trashButton.addActionListener(this);↵ | 5 | inboxButton.addActionListener(this);↵ | |
6 | trashLabel.setLabelFor(trashButton); | 6 | inboxLabel.setLabelFor(inboxButton); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 12 |
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 | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
26 | trashLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "account", "trash_folder")); |
| 5 | inboxLabel = new LabelWithMnemonic(MailResourceLoader.getString("dialog", "account", "inbox_folder")); | |||||||||||||||||
27 | trashButton = new JButton(); |
| 6 | inboxButton = new JButton(); | |||||||||||||||||
28 | trashButton.setActionCommand("TRASH"); |
| 7 | inboxButton.setActionCommand("INBOX"); | |||||||||||||||||
29 | trashButton.addActionListener(this); |
| 8 | inboxButton.addActionListener(this); | |||||||||||||||||
30 | trashLabel.setLabelFor(trashButton); |
| 9 | inboxLabel.setLabelFor(inboxButton); |
Row | Violation |
---|---|
1 | Expression trashLabel is a field being modified, and thus it cannot be parameterized |
2 | Expression inboxLabel is a field being modified, and thus it cannot be parameterized |
3 | Expression trashButton is a field being modified, and thus it cannot be parameterized |
4 | Expression inboxButton is a field being modified, and thus it cannot be parameterized |
5 | Expression trashButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression inboxButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression trashButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression inboxButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression trashButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression inboxButton cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression trashLabel cannot be parameterized, because it has dependencies to/from statements that will be extracted |
12 | Expression inboxLabel cannot be parameterized, because it has dependencies to/from statements that will be extracted |