File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/mailboximport/EvolutionImporter.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/mailboximport/MozillaImporter.java | |||
Method name: void importMailboxFile(File, IWorkerStatusController, IMailbox)
|
Method name: void importMailboxFile(File, IWorkerStatusController, IMailbox)
|
|||
Number of AST nodes: 8 | Number of AST nodes: 8 | |||
1 | strbuf.append(str + "\n");↵ | 1 | strbuf.append(str + "\n");↵ | |
2 | } else {↵ | 2 | } else {↵ | |
3 | // line contains "@" (evolution mbox style) or↵ | 3 | // line contains "-" (mozilla mbox style)↵ | |
4 | // -> import message in Columba↵ | 4 | // -> import message in Columba↵ | |
5 | if (str.indexOf("@") != -1) {↵ | 5 | if (str.indexOf("-") != -1) {↵ | |
6 | if (strbuf.length() != 0) {↵ | 6 | if (strbuf.length() != 0) {↵ | |
7 | // found new message↵ | 7 | // found new message↵ | |
8 | saveMessage(strbuf.toString(), worker,↵ | 8 | saveMessage(strbuf.toString(), worker,↵ | |
9 | getDestinationFolder());↵ | 9 | getDestinationFolder());↵ | |
10 | count++;↵ | 10 | count++;↵ | |
11 | sucess = true;↵ | 11 | sucess = true;↵ | |
12 | }↵ | 12 | }↵ | |
13 | strbuf = new StringBuffer();↵ | 13 | strbuf = new StringBuffer();↵ | |
14 | } else {↵ | 14 | } else {↵ | |
15 | strbuf.append(str + "\n");↵ | 15 | strbuf.append(str + "\n");↵ | |
16 | } | 16 |
| |
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.4 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 28 |
Number of mapped statements | 8 |
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) | 1.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | strbuf.append(str + "\n"); | 10 | strbuf.append(str + "\n"); | |||||||||||
11 | if (str.indexOf("@") != -1) |
| 11 | if (str.indexOf("-") != -1) | ||||||||||
12 | if (strbuf.length() != 0) | 12 | if (strbuf.length() != 0) | |||||||||||
13 | saveMessage(strbuf.toString(), worker, getDestinationFolder()); | 13 | saveMessage(strbuf.toString(), worker, getDestinationFolder()); | |||||||||||
14 | count++; | 14 | count++; | |||||||||||
15 | sucess = true; | 15 | sucess = true; | |||||||||||
16 | strbuf = new StringBuffer(); | 16 | strbuf = new StringBuffer(); | |||||||||||
else | else | |||||||||||||
17 | strbuf.append(str + "\n"); | 17 | strbuf.append(str + "\n"); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables sucess, strbuf, count , while Clone fragment #2 returns variables sucess, strbuf, count |