destModel.addPhone(new PhoneModel(telephoneTextField.getText(), PhoneModel.TYPE_BUSINESS_PHONE)); else if (telephoneComboBox.getSelectedIndex() == 1) destModel.addPhone(new PhoneModel(telephoneTextField.getText(), PhoneModel.TYPE_ASSISTANT_PHONE));
if (telephoneComboBox.getSelectedIndex() == 15) destModel.addPhone(new PhoneModel(telephoneTextField.getText(), PhoneModel.TYPE_TELEX)); else if (telephoneComboBox.getSelectedIndex() == 16) destModel.addPhone(new PhoneModel(telephoneTextField.getText(), PhoneModel.TYPE_TTY));
Clone fragments detected by clone detection tool
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: 2 Number of AST nodes: 4
1
if (telephoneComboBox.getSelectedIndex() == 15)
1
destModel.addPhone(new PhoneModel(telephoneTextField.getText(),
2
				destModel.addPhone(new PhoneModel(telephoneTextField.getText(),
2
						PhoneModel.TYPE_BUSINESS_PHONE));
3
						PhoneModel.TYPE_TELEX));
3
			else if (telephoneComboBox.getSelectedIndex() == 1)
4
			else if (telephoneComboBox.getSelectedIndex() == 16)
4
				destModel.addPhone(new PhoneModel(telephoneTextField.getText(),
5
				destModel.addPhone(new PhoneModel(telephoneTextField.getText(),
5
						PhoneModel.TYPE_ASSISTANT_PHONE));
6
						PhoneModel.TYPE_TTY));
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons0