File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/imap/IMAPFolder.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/accountwizard/OutgoingServerStep.java | |||
Method name: Object[] synchronizeHeaderlist()
|
Method name: void setCanProceed(boolean)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 3 | |||
1 | if (firstSync) {↵ | 1 | if (↵ | |
2 | firstSync = false;↵ | |||
3 | synchronizeFlags(status);↵ | |||
4 | } else {↵ | |||
5 | syncMailboxInfo(status);↵ | |||
6 | }↵ | |||
7 | return result; | 2 | isLastStep) {↵ | |
3 | setCanFinish(b);↵ | |||
4 | } else {↵ | |||
5 | setCanGoNext(b);↵ | |||
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 |
Number of node comparisons | 12 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 3.1 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14 | if (firstSync) |
| 1 | if (isLastStep) | ||||||||||||||||||||
15 | firstSync = false; |
| | |||||||||||||||||||||
16 | synchronizeFlags(status); |
| 2 | setCanFinish(b); | ||||||||||||||||||||
else | else | |||||||||||||||||||||||
17 | syncMailboxInfo(status); |
| 3 | setCanGoNext(b); | ||||||||||||||||||||
18 | return result; |
| |
Row | Violation |
---|---|
1 | Unmatched statement firstSync=false; cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted |
2 | Type org.columba.ristretto.imap.MailboxStatus of variable status does not match with type boolean of variable b |
3 | Expression synchronizeFlags(status) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression synchronizeFlags(status) is a void method call, and thus it cannot be parameterized |
5 | Expression setCanFinish(b) is a void method call, and thus it cannot be parameterized |
6 | Type org.columba.ristretto.imap.MailboxStatus of variable status does not match with type boolean of variable b |
7 | Expression syncMailboxInfo(status) is a void method call, and thus it cannot be parameterized |
8 | Expression setCanGoNext(b) is a void method call, and thus it cannot be parameterized |
9 | Unmatched return result; |
10 | The refactoring of the clones is infeasible, because classes org.columba.mail.folder.imap.IMAPFolder and do not have a common superclass |