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 updateComponents(boolean)
|
Method name: void updateComponents(boolean)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (it.hasNext()) {↵ | 1 | if (it.hasNext()) {↵ | |
2 | PhoneModel m = (PhoneModel) it.next();↵ | 2 | PhoneModel m = (PhoneModel) it.next();↵ | |
3 | fillPhoneView(m, telephoneComboBox1, telephoneTextField1);↵ | 3 | fillPhoneView(m, telephoneComboBox3, telephoneTextField3);↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (it.hasNext()) {↵ | 5 | if (it.hasNext()) {↵ | |
6 | PhoneModel m = (PhoneModel) it.next();↵ | 6 | PhoneModel m = (PhoneModel) it.next();↵ | |
7 | fillPhoneView(m, telephoneComboBox2, telephoneTextField2);↵ | 7 | fillPhoneView(m, telephoneComboBox4, telephoneTextField4);↵ | |
8 | } | 8 |
| |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 29 |
Number of mapped statements | 6 |
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) | 827.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
40 | if (it.hasNext()) | 46 | if (it.hasNext()) | ||||||||||||||
41 | PhoneModel m = (PhoneModel)it.next(); | 47 | PhoneModel m = (PhoneModel)it.next(); | ||||||||||||||
42 | fillPhoneView(m, telephoneComboBox1, telephoneTextField1); |
| 48 | fillPhoneView(m, telephoneComboBox3, telephoneTextField3); | |||||||||||||
43 | if (it.hasNext()) | 49 | if (it.hasNext()) | ||||||||||||||
44 | PhoneModel m = (PhoneModel)it.next(); | 50 | PhoneModel m = (PhoneModel)it.next(); | ||||||||||||||
45 | fillPhoneView(m, telephoneComboBox2, telephoneTextField2); |
| 51 | fillPhoneView(m, telephoneComboBox4, telephoneTextField4); |
Row | Violation |
---|