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