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 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 1 |
Number of mapped statements | 1 |
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 | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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); |
Row | Violation |
---|