File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/contact/ContactEditorDialog.java | File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/dialog/contact/ContactEditorDialog.java | |||
Method name: void fillIMView(InstantMessagingModel, JComboBox, JTextField)
|
Method name: void fillEmailView(IEmailModel, JComboBox, JTextField)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (m.getType() == InstantMessagingModel.TYPE_YAHOO)↵ | 1 | if (m.getType() == EmailModel.TYPE_WORK)↵ | |
2 | imComboBox.setSelectedIndex(2);↵ | 2 | comboBox.setSelectedIndex(0);↵ | |
3 | else if (m.getType() == InstantMessagingModel.TYPE_MSN)↵ | 3 | else if (m.getType() == EmailModel.TYPE_HOME)↵ | |
4 | imComboBox.setSelectedIndex(3);↵ | 4 | comboBox.setSelectedIndex(1);↵ | |
5 | else if (m.getType() == InstantMessagingModel.TYPE_ICQ)↵ | 5 | else if (m.getType() == EmailModel.TYPE_OTHER)↵ | |
6 | imComboBox.setSelectedIndex(4); | 6 | comboBox.setSelectedIndex(2); | |
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) | 1.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 27 |
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) | 3.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5 | else if (m.getType() == InstantMessagingModel.TYPE_YAHOO) |
| 5 | else if (m.getType() == EmailModel.TYPE_OTHER) | ||||||||||||||||||
6 | imComboBox.setSelectedIndex(2); |
| 6 | comboBox.setSelectedIndex(2); | ||||||||||||||||||
7 | else if (m.getType() == InstantMessagingModel.TYPE_MSN) |
| 3 | else if (m.getType() == EmailModel.TYPE_HOME) | ||||||||||||||||||
8 | imComboBox.setSelectedIndex(3); |
| 4 | comboBox.setSelectedIndex(1); | ||||||||||||||||||
9 | else if (m.getType() == InstantMessagingModel.TYPE_ICQ) |
| 1 | else if (m.getType() == EmailModel.TYPE_WORK) | ||||||||||||||||||
10 | imComboBox.setSelectedIndex(4); |
| 2 | comboBox.setSelectedIndex(0); |
Row | Violation |
---|---|
1 | Type org.columba.addressbook.model.InstantMessagingModel of variable m does not match with type org.columba.addressbook.model.IEmailModel of variable m |
2 | Type org.columba.addressbook.model.InstantMessagingModel does not match with type org.columba.addressbook.model.EmailModel |
3 | Type org.columba.addressbook.model.InstantMessagingModel of variable m does not match with type org.columba.addressbook.model.IEmailModel of variable m |
4 | Type org.columba.addressbook.model.InstantMessagingModel does not match with type org.columba.addressbook.model.EmailModel |
5 | Type org.columba.addressbook.model.InstantMessagingModel of variable m does not match with type org.columba.addressbook.model.IEmailModel of variable m |
6 | Type org.columba.addressbook.model.InstantMessagingModel does not match with type org.columba.addressbook.model.EmailModel |