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 | dialogAddressbookListModel[0] = new ContactListModel();↵ | 1 | dialogAddressbookListModel[1] = new ContactListModel();↵ | |
2 | dialogAddressbookListModel[0].setHeaderItemList(toListModel);↵ | 2 | dialogAddressbookListModel[1].setHeaderItemList(ccListModel);↵ | |
3 | toList = new ContactDNDListView(dialogAddressbookListModel[0]);↵ | 3 | ccList = new ContactDNDListView(dialogAddressbookListModel[1]);↵ | |
4 | toList.setMinimumSize(new Dimension(150, 150));↵ | 4 | ccList.setMinimumSize(new Dimension(150, 150));↵ | |
5 | toList.addMouseListener(new DoubleClickListener() {↵ | 5 | ccList.addMouseListener(new DoubleClickListener() {↵ | |
6 | public void doubleClick(MouseEvent ev) {↵ | 6 | public void doubleClick(MouseEvent ev) {↵ | |
7 | actionPerformed(new ActionEvent(toList, 0, "TO_REMOVE"));↵ | 7 | actionPerformed(new ActionEvent(ccList, 0, "CC_REMOVE"));↵ | |
8 | }↵ | 8 | }↵ | |
9 | });↵ | 9 | });↵ | |
10 | ccLabel = new JLabel(MailResourceLoader.getString("dialog",↵ | 10 | bccLabel = new JLabel(MailResourceLoader.getString("dialog",↵ | |
11 | "selectaddressdialog", "cc")); | 11 | "selectaddressdialog", "bcc")); | |
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 | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | dialogAddressbookListModel[0] = new ContactListModel(); |
| 8 | dialogAddressbookListModel[1] = new ContactListModel(); | ||||||||||||||||||||
3 | dialogAddressbookListModel[0].setHeaderItemList(toListModel); |
| 9 | dialogAddressbookListModel[1].setHeaderItemList(ccListModel); | ||||||||||||||||||||
4 | toList = new ContactDNDListView(dialogAddressbookListModel[0]); |
| 10 | ccList = new ContactDNDListView(dialogAddressbookListModel[1]); | ||||||||||||||||||||
5 | toList.setMinimumSize(new Dimension(150, 150)); |
| 11 | ccList.setMinimumSize(new Dimension(150, 150)); | ||||||||||||||||||||
6 | toList.addMouseListener(new DoubleClickListener() {...}); |
| 12 | ccList.addMouseListener(new DoubleClickListener() {...}); | ||||||||||||||||||||
7 | ccLabel = new JLabel(MailResourceLoader.getString("dialog", "selectaddressdialog", "cc")); |
| 13 | bccLabel = new JLabel(MailResourceLoader.getString("dialog", "selectaddressdialog", "bcc")); |
Row | Violation |
---|---|
1 | Expression toList is a field being modified, and thus it cannot be parameterized |
2 | Expression ccList is a field being modified, and thus it cannot be parameterized |
3 | Expression toList cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression ccList cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression toList cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression ccList 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 ccList cannot be parameterized, because it has dependencies to/from statements that will be extracted |
9 | Expression ccLabel is a field being modified, and thus it cannot be parameterized |
10 | Expression bccLabel is a field being modified, and thus it cannot be parameterized |