File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/ActionList.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/filter/CriteriaList.java | |||
Method name: void updateComponents(boolean)
|
Method name: void updateComponents(boolean)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | if (!b) {↵ | 1 | if (!b) {↵ | |
2 | for (Iterator it = list.iterator(); it.hasNext();) {↵ | 2 | for (Iterator it = list.iterator(); it.hasNext();) {↵ | |
3 | DefaultActionRow row = (DefaultActionRow) it.next();↵ | 3 | DefaultCriteriaRow row = (Default↵ | |
4 | row.updateComponents(false);↵ | |||
5 | }↵ | |||
6 | // for (int i = 0; i < list.size(); i++) {↵ | |||
7 | // DefaultActionRow row = (DefaultActionRow) list.get(i);↵ | 4 | CriteriaRow) it.next();↵ | |
8 | // row.updateComponents(false);↵ | 5 | row.updateComponents(false);↵ | |
9 | // }↵ | 6 | }↵ | |
10 | } | 7 |
| |
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.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 3.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (!b) | 1 | if (!b) | ||||||||||||
2 | for (Iterator it = list.iterator(); it.hasNext(); ) | 2 | for (Iterator it = list.iterator(); it.hasNext(); ) | ||||||||||||
|
| 3 | DefaultCriteriaRow row = (DefaultCriteriaRow)it.next(); | ||||||||||||
3 | DefaultActionRow row = (DefaultActionRow)it.next(); |
| | ||||||||||||
4 | row.updateComponents(false); |
| 4 | row.updateComponents(false); |
Row | Violation |
---|---|
1 | Unmatched statement DefaultCriteriaRow row=(DefaultCriteriaRow)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 DefaultActionRow row=(DefaultActionRow)it.next(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
3 | Type org.columba.mail.gui.config.filter.plugins.DefaultActionRow of variable row does not match with type org.columba.mail.gui.config.filter.plugins.DefaultCriteriaRow of variable row |