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 | IEmailModel m = (IEmailModel) it.next();↵ | 2 | InstantMessagingModel m = (InstantMessagingModel) it.next();↵ | |
3 | fillEmailView(m, emailComboBox2, emailTextField2);↵ | 3 | fillIMView(m, imComboBox1, imTextField1);↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (it.hasNext()) {↵ | 5 | if (it.hasNext()) {↵ | |
6 | IEmailModel m = (IEmailModel) it.next();↵ | 6 | InstantMessagingModel m = (InstantMessagingModel) it.next();↵ | |
7 | fillEmailView(m, emailComboBox3, emailTextField3);↵ | 7 | fillIMView(m, imComboBox2, imTextField2);↵ | |
8 | }↵ | 8 | }↵ | |
9 | if (it.hasNext()) {↵ | 9 | if (it.hasNext()) {↵ | |
10 | IEmailModel m = (IEmailModel) it.next();↵ | 10 | InstantMessagingModel m = (InstantMessagingModel) it.next();↵ | |
11 | fillEmailView(m, emailComboBox4, emailTextField4);↵ | 11 | fillIMView(m, imComboBox3, imTextField3);↵ | |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 58 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 6 |
Number of unmapped statements in the second code fragment | 6 |
Time elapsed for statement mapping (ms) | 321.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||
---|---|---|---|---|---|---|---|
30 | if (it.hasNext()) | 53 | if (it.hasNext()) | ||||
31 | IEmailModel m = (IEmailModel)it.next(); |
| | ||||
32 | fillEmailView(m, emailComboBox2, emailTextField2); | | |||||
|
| 54 | InstantMessagingModel m = (InstantMessagingModel)it.next(); | ||||
| 55 | fillIMView(m, imComboBox1, imTextField1); | |||||
33 | if (it.hasNext()) | 56 | if (it.hasNext()) | ||||
34 | IEmailModel m = (IEmailModel)it.next(); |
| | ||||
35 | fillEmailView(m, emailComboBox3, emailTextField3); | | |||||
|
| 57 | InstantMessagingModel m = (InstantMessagingModel)it.next(); | ||||
| 58 | fillIMView(m, imComboBox2, imTextField2); | |||||
36 | if (it.hasNext()) | 59 | if (it.hasNext()) | ||||
37 | IEmailModel m = (IEmailModel)it.next(); |
| | ||||
38 | fillEmailView(m, emailComboBox4, emailTextField4); | | |||||
|
| 60 | InstantMessagingModel m = (InstantMessagingModel)it.next(); | ||||
| 61 | fillIMView(m, imComboBox3, imTextField3); |
Row | Violation |
---|---|
1 | Unmatched statement IEmailModel m=(IEmailModel)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 | Unmatched statement IEmailModel m=(IEmailModel)it.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
4 | 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 |
5 | Unmatched statement IEmailModel m=(IEmailModel)it.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
6 | 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 |
7 | The refactoring of the clones is infeasible, because the number of macthed statements is equal to zero |