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 remove(int)
|
Method name: void remove(int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | IFilterActionList actionList = filter.getFilterActionList();↵ | 1 | IFilterRule rule = filter.getFilterRule();↵ | |
2 | if (actionList.getChildCount() > 1) {↵ | 2 | if (rule.count() > 1) {↵ | |
3 | updateComponents(false);↵ | 3 | updateComponents(false);↵ | |
4 | actionList.remove(i);↵ | 4 | rule.remove(i);↵ | |
5 | update();↵ | 5 | update();↵ | |
6 | } | 6 |
| |
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 | 17 |
Number of mapped statements | 5 |
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) | 10.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | IFilterActionList actionList = filter.getFilterActionList(); |
| 1 | IFilterRule rule = filter.getFilterRule(); | |||||||||||||||||||
2 | if (actionList.getChildCount() > 1) |
| 2 | if (rule.count() > 1) | |||||||||||||||||||
3 | updateComponents(false); | 3 | updateComponents(false); | ||||||||||||||||||||
4 | actionList.remove(i); |
| 4 | rule.remove(i); | |||||||||||||||||||
5 | update(); | 5 | update(); |
Row | Violation |
---|---|
1 | Expression actionList.getChildCount() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression rule.count() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression actionList cannot be unified with expression rule , because common superclass org.columa.core.config.IDefaultItem does not declare member(s) public abstract void remove(int) |