model = new AddressModel(workPOBoxTextField.getText(), workStreetTextField.getText(), workCityTextField.getText(), workZipPostalCodeTextField.getText(), workStateProvinceCountyTextField.getText(), workCountryTextField.getText(), workAddressTextArea.getText(), type);
if (type == AddressModel.TYPE_OTHER) model = new AddressModel(otherPOBoxTextField.getText(), otherStreetTextField.getText(), otherCityTextField.getText(), otherZipPostalCodeTextField.getText(), otherStateProvinceCountyTextField.getText(), otherCountryTextField.getText(), otherAddressTextArea.getText(), type);
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 fillAddressModel(int, ContactModel) Method name: void fillAddressModel(int, ContactModel)
Number of AST nodes: 1 Number of AST nodes: 2
1
if (type == AddressModel.TYPE_OTHER)
1
model = new AddressModel(workPOBoxTextField.getText(),
2
			model = new AddressModel(otherPOBoxTextField.getText(),
2
					workStreetTextField.getText(),
3
					otherStreetTextField.getText(),
3
					workCityTextField.getText(),
4
					otherCityTextField.getText(),
4
					workZipPostalCodeTextField.getText(),
5
					otherZipPostalCodeTextField.getText(),
5
					workStateProvinceCountyTextField.getText(),
6
					otherStateProvinceCountyTextField.getText(),
6
					workCountryTextField.getText(),
7
					otherCountryTextField.getText(),
7
					workAddressTextArea.getText(),
8
					otherAddressTextArea.getText(),
8
					type);
9
					type);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
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 comparisons1
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    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 typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    model = new AddressModel(workPOBoxTextField.getText(), workStreetTextField.getText(), workCityTextField.getText(), workZipPostalCodeTextField.getText(), workStateProvinceCountyTextField.getText(), workCountryTextField.getText(), workAddressTextArea.getText(), type);
    3
    model = new AddressModel(workPOBoxTextField.getText(), workStreetTextField.getText(), workCityTextField.getText(), workZipPostalCodeTextField.getText(), workStateProvinceCountyTextField.getText(), workCountryTextField.getText(), workAddressTextArea.getText(), type);
    7
    model = new AddressModel(otherPOBoxTextField.getText(), otherStreetTextField.getText(), otherCityTextField.getText(), otherZipPostalCodeTextField.getText(), otherStateProvinceCountyTextField.getText(), otherCountryTextField.getText(), otherAddressTextArea.getText(), type);
    Differences
    Expression1Expression2Difference
    workPOBoxTextFieldotherPOBoxTextFieldVARIABLE_NAME_MISMATCH
    workStreetTextFieldotherStreetTextFieldVARIABLE_NAME_MISMATCH
    workCityTextFieldotherCityTextFieldVARIABLE_NAME_MISMATCH
    workZipPostalCodeTextFieldotherZipPostalCodeTextFieldVARIABLE_NAME_MISMATCH
    workStateProvinceCountyTextFieldotherStateProvinceCountyTextFieldVARIABLE_NAME_MISMATCH
    workCountryTextFieldotherCountryTextFieldVARIABLE_NAME_MISMATCH
    workAddressTextAreaotherAddressTextAreaVARIABLE_NAME_MISMATCH
    7
    model = new AddressModel(otherPOBoxTextField.getText(), otherStreetTextField.getText(), otherCityTextField.getText(), otherZipPostalCodeTextField.getText(), otherStateProvinceCountyTextField.getText(), otherCountryTextField.getText(), otherAddressTextArea.getText(), type);
    Precondition Violations (0)
    Row Violation