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 fillPhoneModel(JTextField, JComboBox, ContactModel)
|
Method name: void fillPhoneModel(JTextField, JComboBox, ContactModel)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 6 | |||
1 | if (telephoneComboBox.getSelectedIndex() == 14)↵ | |||
1 | destModel.addPhone(new PhoneModel(telephoneTextField.getText(),↵ | 2 | destModel.addPhone(new PhoneModel(telephoneTextField.getText(),↵ | |
2 | PhoneModel.TYPE_BUSINESS_PHONE));↵ | 3 | PhoneModel.TYPE_RADIO));↵ | |
3 | else if (telephoneComboBox.getSelectedIndex() == 1)↵ | 4 | else if (telephoneComboBox.getSelectedIndex() == 15)↵ | |
4 | destModel.addPhone(new PhoneModel(telephoneTextField.getText(),↵ | 5 | destModel.addPhone(new PhoneModel(telephoneTextField.getText(),↵ | |
5 | PhoneModel.TYPE_ASSISTANT_PHONE));↵ | 6 | PhoneModel.TYPE_TELEX));↵ | |
6 | else if (telephoneComboBox.getSelectedIndex() == 2)↵ | 7 | else if (telephoneComboBox.getSelectedIndex() == 16)↵ | |
7 | destModel.addPhone(new PhoneModel(telephoneTextField.getText(),↵ | 8 | destModel.addPhone(new PhoneModel(telephoneTextField.getText(),↵ | |
8 | PhoneModel.TYPE_BUSINESS_FAX)); | 9 | PhoneModel.TYPE_TTY)); | |
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 | 0 |
Number of mapped statements | 0 |
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 | Unknown type |
ID | Statement | ID | Statement |
---|
Row | Violation |
---|