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 fillPhoneView(PhoneModel, JComboBox, JTextField)
|
Method name: void fillEmailView(IEmailModel, JComboBox, JTextField)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (m.getType() == PhoneModel.TYPE_RADIO)↵ | 1 | if (m.getType() == EmailModel.TYPE_↵ | |
2 | telephoneC↵ | 2 | WORK)↵ | |
3 | omboBox.setSelectedIndex(14);↵ | 3 | comboBox.setSelectedIndex(0);↵ | |
4 | else if (m.getType() == PhoneModel.TYPE_TELEX)↵ | 4 | else if (m.getType() == EmailModel.TYPE_↵ | |
5 | telephoneC↵ | 5 | HOME)↵ | |
6 | omboBox.setSelectedIndex(15);↵ | 6 | comboBox.setSelectedIndex(1);↵ | |
7 | else if (m.getType() == PhoneModel.TYPE_TTY)↵ | 7 | else if (m.getType() == EmailModel.TYPE_↵ | |
8 | telephoneC↵ | 8 | OTHER)↵ | |
9 | omboBox.setSelectedIndex(16); | 9 | 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.3 |
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) | 1.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29 | else if (m.getType() == PhoneModel.TYPE_RADIO) |
| 5 | else if (m.getType() == EmailModel.TYPE_OTHER) | ||||||||||||||||||
30 | telephoneComboBox.setSelectedIndex(14); |
| 6 | comboBox.setSelectedIndex(2); | ||||||||||||||||||
31 | else if (m.getType() == PhoneModel.TYPE_TELEX) |
| 3 | else if (m.getType() == EmailModel.TYPE_HOME) | ||||||||||||||||||
32 | telephoneComboBox.setSelectedIndex(15); |
| 4 | comboBox.setSelectedIndex(1); | ||||||||||||||||||
33 | else if (m.getType() == PhoneModel.TYPE_TTY) |
| 1 | else if (m.getType() == EmailModel.TYPE_WORK) | ||||||||||||||||||
34 | telephoneComboBox.setSelectedIndex(16); |
| 2 | comboBox.setSelectedIndex(0); |
Row | Violation |
---|---|
1 | Type org.columba.addressbook.model.PhoneModel of variable m does not match with type org.columba.addressbook.model.IEmailModel of variable m |
2 | Type org.columba.addressbook.model.PhoneModel of variable PhoneModel does not match with type org.columba.addressbook.model.EmailModel of variable EmailModel |
3 | Type org.columba.addressbook.model.PhoneModel of variable m does not match with type org.columba.addressbook.model.IEmailModel of variable m |
4 | Type org.columba.addressbook.model.PhoneModel of variable PhoneModel does not match with type org.columba.addressbook.model.EmailModel of variable EmailModel |
5 | Type org.columba.addressbook.model.PhoneModel of variable m does not match with type org.columba.addressbook.model.IEmailModel of variable m |
6 | Type org.columba.addressbook.model.PhoneModel of variable PhoneModel does not match with type org.columba.addressbook.model.EmailModel of variable EmailModel |