File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/list/CheckableList.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/outbox/SendListManager.java | |||
Method name: void setModel(TableModel)
|
Method name: void add(SendableMessage)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 4 | |||
1 | super.setModel(model);↵ | |||
2 | initColumns();↵ | |||
3 | setIntercellSpacing(new Dimension(0, 0)); | 1 | if (message.getAccountUid() == actList.getAccountUid()) {↵ | |
2 | actList.add(message);↵ | |||
3 | releaseMutex();↵ | |||
4 | return;↵ | |||
5 |
| |||
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.setModel(model); |
| 9 | releaseMutex(); | ||||||||||||||
2 | initColumns(); | | ||||||||||||||||
3 | setIntercellSpacing(new Dimension(0, 0)); |
| | |||||||||||||||
|
| 8 | actList.add(message); | |||||||||||||||
|
| 10 | return; |
Row | Violation |
---|---|
1 | Expression releaseMutex() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression super.setModel(model) is a void method call, and thus it cannot be parameterized |
3 | Expression releaseMutex() is a void method call, and thus it cannot be parameterized |
4 | Super method call super.setModel(model); cannot be extracted from method |
5 | Unmatched statement setIntercellSpacing(new Dimension(0,0)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
6 | Unmatched statement actList.add(message); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
7 | Unmatched return; |
8 | The refactoring of the clones is infeasible, because classes org.columba.calendar.ui.list.CheckableList and org.columba.mail.folder.outbox.SendListManager do not have a common superclass |