File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/contact/SelectAddressDialog.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/contact/SelectAddressDialog.java | |||
Method name: void initComponents()
|
Method name: void initComponents()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | toLabel = new JLabel(MailResourceLoader.getString("dialog",↵ | 1 | bccLabel = new JLabel(MailResourceLoader.getString("dialog",↵ | |
2 | "selectaddressdialog", "to")); //$NON-NLS-1$↵ | 2 | "selectaddressdialog", "bcc")); //$NON-NLS-1$↵ | |
3 | dialogAddressbookListModel[0] = new ContactListModel();↵ | 3 | dialogAddressbookListModel[2] = new ContactListModel();↵ | |
4 | dialogAddressbookListModel[0].setHeaderItemList(toListModel);↵ | 4 | dialogAddressbookListModel[2].setHeaderItemList(bccListModel);↵ | |
5 | toList = new ContactDNDListView(dialogAddressbookListModel[0]);↵ | 5 | bccList = new ContactDNDListView(dialogAddressbookListModel[2]);↵ | |
6 | toList.setMinimumSize(new Dimension(150, 150));↵ | 6 | bccList.setMinimumSize(new Dimension(150, 150));↵ | |
7 | toList.addMouseListener(new DoubleClickListener() {↵ | 7 | bccList.addMouseListener(new DoubleClickListener() {↵ | |
8 | public void doubleClick(MouseEvent ev) {↵ | 8 | public void doubleClick(MouseEvent ev) {↵ | |
9 | actionPerformed(new ActionEvent(toList, 0, "TO_REMOVE"));↵ | 9 | actionPerformed(new ActionEvent(bccList, 0, "BCC_REMOVE"));↵ | |
10 | }↵ | 10 | }↵ | |
11 | }); | 11 |
| |
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 | 15 |
Number of mapped statements | 6 |
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 | toLabel = new JLabel(MailResourceLoader.getString("dialog", "selectaddressdialog", "to")); |
| 13 | bccLabel = new JLabel(MailResourceLoader.getString("dialog", "selectaddressdialog", "bcc")); | ||||||||||||||||||||
2 | dialogAddressbookListModel[0] = new ContactListModel(); |
| 14 | dialogAddressbookListModel[2] = new ContactListModel(); | ||||||||||||||||||||
3 | dialogAddressbookListModel[0].setHeaderItemList(toListModel); |
| 15 | dialogAddressbookListModel[2].setHeaderItemList(bccListModel); | ||||||||||||||||||||
4 | toList = new ContactDNDListView(dialogAddressbookListModel[0]); |
| 16 | bccList = new ContactDNDListView(dialogAddressbookListModel[2]); | ||||||||||||||||||||
5 | toList.setMinimumSize(new Dimension(150, 150)); |
| 17 | bccList.setMinimumSize(new Dimension(150, 150)); | ||||||||||||||||||||
6 | toList.addMouseListener(new DoubleClickListener() {...}); |
| 18 | bccList.addMouseListener(new DoubleClickListener() {...}); |
Row | Violation |
---|---|
1 | Expression toLabel is a field being modified, and thus it cannot be parameterized |
2 | Expression bccLabel is a field being modified, and thus it cannot be parameterized |
3 | Expression toList is a field being modified, and thus it cannot be parameterized |
4 | Expression bccList is a field being modified, and thus it cannot be parameterized |
5 | Expression toList cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression bccList cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression toList cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression bccList cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression toList cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression bccList cannot be parameterized, because it has dependencies to/from statements that will be extracted |