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 | InstantMessagingModel m = (InstantMessagingModel) it.next();↵ | 2 | InstantMessagingModel m = (InstantMessagingModel) it.next();↵ | |
3 | fillIMView(m, imComboBox3, imTextField3);↵ | 3 | fillIMView(m, imComboBox1, imTextField1);↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (it.hasNext()) {↵ | 5 | if (it.hasNext()) {↵ | |
6 | InstantMessagingModel m = (InstantMessagingModel) it.next();↵ | 6 | InstantMessagingModel m = (InstantMessagingModel) it.next();↵ | |
7 | fillIMView(m, imComboBox4, imTextField4);↵ | 7 | fillIMView(m, imComboBox2, imTextField2);↵ | |
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.3 |
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) | 2381.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
59 | if (it.hasNext()) | 53 | if (it.hasNext()) | ||||||||||||||
60 | InstantMessagingModel m = (InstantMessagingModel)it.next(); | 54 | InstantMessagingModel m = (InstantMessagingModel)it.next(); | ||||||||||||||
61 | fillIMView(m, imComboBox3, imTextField3); |
| 55 | fillIMView(m, imComboBox1, imTextField1); | |||||||||||||
62 | if (it.hasNext()) | 56 | if (it.hasNext()) | ||||||||||||||
63 | InstantMessagingModel m = (InstantMessagingModel)it.next(); | 57 | InstantMessagingModel m = (InstantMessagingModel)it.next(); | ||||||||||||||
64 | fillIMView(m, imComboBox4, imTextField4); |
| 58 | fillIMView(m, imComboBox2, imTextField2); |
Row | Violation |
---|