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: 9 | Number of AST nodes: 9 | |||
1 | if (it.hasNext()) {↵ | 1 | if (it.hasNext()) {↵ | |
2 | InstantMessagingModel m = (InstantMessagingModel) it.next();↵ | 2 | PhoneModel m = (PhoneModel) it.next();↵ | |
3 | fillIMView(m, imComboBox1, imTextField1);↵ | 3 | fillPhoneView(m, telephoneComboBox2, telephoneTextField2);↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (it.hasNext()) {↵ | 5 | if (it.hasNext()) {↵ | |
6 | InstantMessagingModel m = (InstantMessagingModel) it.next();↵ | 6 | PhoneModel m = (PhoneModel) it.next();↵ | |
7 | fillIMView(m, imComboBox2, imTextField2);↵ | 7 | fillPhoneView(m, telephoneComboBox3, telephoneTextField3);↵ | |
8 | }↵ | 8 | }↵ | |
9 | if (it.hasNext()) {↵ | 9 | if (it.hasNext()) {↵ | |
10 | InstantMessagingModel m = (InstantMessagingModel) it.next();↵ | 10 | PhoneModel m = (PhoneModel) it.next();↵ | |
11 | fillIMView(m, imComboBox3, imTextField3);↵ | 11 | fillPhoneView(m, telephoneComboBox4, telephoneTextField4);↵ | |
12 | } | 12 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are in the same method |
Number of node comparisons | 58 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 3 |
Time elapsed for statement mapping (ms) | 180.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53 | if (it.hasNext()) | 49 | if (it.hasNext()) | |||||||||||||||||
|
| 50 | PhoneModel m = (PhoneModel)it.next(); | |||||||||||||||||
54 | InstantMessagingModel m = (InstantMessagingModel)it.next(); |
| | |||||||||||||||||
55 | fillIMView(m, imComboBox1, imTextField1); |
| 51 | fillPhoneView(m, telephoneComboBox4, telephoneTextField4); | ||||||||||||||||
56 | if (it.hasNext()) | 46 | if (it.hasNext()) | |||||||||||||||||
|
| 47 | PhoneModel m = (PhoneModel)it.next(); | |||||||||||||||||
57 | InstantMessagingModel m = (InstantMessagingModel)it.next(); |
| | |||||||||||||||||
58 | fillIMView(m, imComboBox2, imTextField2); |
| 48 | fillPhoneView(m, telephoneComboBox3, telephoneTextField3); | ||||||||||||||||
59 | if (it.hasNext()) | 43 | if (it.hasNext()) | |||||||||||||||||
|
| 44 | PhoneModel m = (PhoneModel)it.next(); | |||||||||||||||||
60 | InstantMessagingModel m = (InstantMessagingModel)it.next(); |
| | |||||||||||||||||
61 | fillIMView(m, imComboBox3, imTextField3); |
| 45 | fillPhoneView(m, telephoneComboBox2, telephoneTextField2); |
Row | Violation |
---|---|
1 | Unmatched statement PhoneModel m=(PhoneModel)it.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Unmatched statement InstantMessagingModel m=(InstantMessagingModel)it.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Expression fillIMView(m,imComboBox1,imTextField1) is a void method call, and thus it cannot be parameterized |
4 | Expression fillPhoneView(m,telephoneComboBox4,telephoneTextField4) is a void method call, and thus it cannot be parameterized |
5 | Type org.columba.addressbook.model.InstantMessagingModel of variable m does not match with type org.columba.addressbook.model.PhoneModel of variable m |
6 | Unmatched statement PhoneModel m=(PhoneModel)it.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
7 | Unmatched statement InstantMessagingModel m=(InstantMessagingModel)it.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
8 | Expression fillIMView(m,imComboBox2,imTextField2) is a void method call, and thus it cannot be parameterized |
9 | Expression fillPhoneView(m,telephoneComboBox3,telephoneTextField3) is a void method call, and thus it cannot be parameterized |
10 | Type org.columba.addressbook.model.InstantMessagingModel of variable m does not match with type org.columba.addressbook.model.PhoneModel of variable m |
11 | Unmatched statement PhoneModel m=(PhoneModel)it.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
12 | Unmatched statement InstantMessagingModel m=(InstantMessagingModel)it.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
13 | Expression fillIMView(m,imComboBox3,imTextField3) is a void method call, and thus it cannot be parameterized |
14 | Expression fillPhoneView(m,telephoneComboBox2,telephoneTextField2) is a void method call, and thus it cannot be parameterized |
15 | Type org.columba.addressbook.model.InstantMessagingModel of variable m does not match with type org.columba.addressbook.model.PhoneModel of variable m |