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 fillAddressView(AddressModel)
|
Method name: void fillAddressView(AddressModel)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 8 | |||
1 | work↵ | 1 | if (m.getType() == AddressModel.TYPE_OTHER) {↵ | |
2 | CityTextField.setText(m.getCity());↵ | 2 | otherCityTextField.setText(m.getCity());↵ | |
3 | workCountryTextField.setText(m.getCountry());↵ | 3 | otherCountryTextField.setText(m.getCountry());↵ | |
4 | workPOBoxTextField.setText(m.getPoBox());↵ | 4 | otherPOBoxTextField.setText(m.getPoBox());↵ | |
5 | workStateProvinceCountyTextField↵ | 5 | otherStateProvinceCountyTextField↵ | |
6 | .setText(m↵ | 6 | .setText(m↵ | |
7 | .getStateProvinceCounty());↵ | 7 | .getStateProvinceCounty());↵ | |
8 | workZipPostalCodeTextField.setText(m.getZipPostalCode());↵ | 8 | otherZipPostalCodeTextField.setText(m.getZipPostalCode());↵ | |
9 | workAddressTextArea.setText(m.getLabel());↵ | 9 | otherAddressTextArea.setText(m.getLabel());↵ | |
10 | workStreetTextField.setText(m.getStreet()); | 10 | otherStreetTextField.setText(m.getStreet());↵ | |
11 |
| |||
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 | 49 |
Number of mapped statements | 7 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | workCityTextField.setText(m.getCity()); |
| 18 | otherCityTextField.setText(m.getCity()); | ||||||||||
3 | workCountryTextField.setText(m.getCountry()); |
| 19 | otherCountryTextField.setText(m.getCountry()); | ||||||||||
4 | workPOBoxTextField.setText(m.getPoBox()); |
| 20 | otherPOBoxTextField.setText(m.getPoBox()); | ||||||||||
5 | workStateProvinceCountyTextField.setText(m.getStateProvinceCounty()); |
| 21 | otherStateProvinceCountyTextField.setText(m.getStateProvinceCounty()); | ||||||||||
6 | workZipPostalCodeTextField.setText(m.getZipPostalCode()); |
| 22 | otherZipPostalCodeTextField.setText(m.getZipPostalCode()); | ||||||||||
7 | workAddressTextArea.setText(m.getLabel()); |
| 23 | otherAddressTextArea.setText(m.getLabel()); | ||||||||||
8 | workStreetTextField.setText(m.getStreet()); |
| 24 | otherStreetTextField.setText(m.getStreet()); |
Row | Violation |
---|