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)); else if (telephoneComboBox.getSelectedIndex() == 2) destModel.addPhone(new PhoneModel(telephoneTextField.getText(), PhoneModel.TYPE_BUSINESS_FAX));
if (imComboBox.getSelectedIndex() == 2) destModel .addInstantMessaging(new InstantMessagingModel( imTextField.getText(), InstantMessagingModel.TYPE_YAHOO)); else if (imComboBox.getSelectedIndex() == 3) destModel.addInstantMessaging(new InstantMessagingModel( imTextField.getText(), InstantMessagingModel.TYPE_MSN)); else if (imComboBox.getSelectedIndex() == 4) destModel.addInstantMessaging(new InstantMessagingModel( imTextField.getText(), InstantMessagingModel.TYPE_ICQ));
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 fillIMModel(JTextField, JComboBox, ContactModel)
Number of AST nodes: 3 Number of AST nodes: 6
1
if (imComboBox.getSelectedIndex() == 2)
1
destModel.addPhone(new PhoneModel(telephone
2
				destModel
3
						.addInstantMessaging(new InstantMessagingModel(
2
TextField.getText(),
4
								imTextField.getText(),
3
						PhoneModel.TYPE_BUSINESS_PHONE));
5
								InstantMessagingModel.TYPE_YAHOO));
4
			else if (telephoneComboBox.getSelectedIndex() == 1)
6
			else if (imComboBox.getSelectedIndex() == 3)
5
				destModel.addPhone(new PhoneModel(telephone
7
				destModel.addInstantMessaging(new InstantMessagingModel(
6
TextField.getText(),
8
						imTextField.getText(),
7
						PhoneModel.TYPE_ASSISTANT_PHONE));
9
 InstantMessagingModel.TYPE_MSN));
8
			else if (telephoneComboBox.getSelectedIndex() == 2)
10
			else if (imComboBox.getSelectedIndex() == 4)
9
				destModel.addPhone(new PhoneModel(telephone
11
				destModel.addInstantMessaging(new InstantMessagingModel(
10
TextField.getText(),
12
						imTextField.getText(),
11
						PhoneModel.TYPE_BUSINESS_FAX));
13
 InstantMessagingModel.TYPE_ICQ));
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons0
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements0
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeUnknown type
    Mapped Statements
    ID Statement ID Statement
    Precondition Violations (0)
    Row Violation