if (firstSync) {
firstSync = false;
synchronizeFlags(status);
} else {
syncMailboxInfo(status);
}
return result;
if (isLastStep) {
setCanFinish(b);
} else {
setCanGoNext(b);
}
Clone fragments detected by clone detection tool
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 |
Summary
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 12 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 4 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 3 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
14 | if (firstSync) | | 1 | if (isLastStep) |
| | | 2 | |
15 | | | | |
16 | synchronizeFlags(status); | | | |
| | | | |
| | | 3 | |
17 | | | | |
18 | return result; | | | |
Precondition Violations (1)
Row |
Violation |
1 | Unmatched return result; |