if (str.indexOf("@") != -1) {
if (strbuf.length() != 0) {
// found new message
saveMessage(strbuf.toString(), worker,
getDestinationFolder());
count++;
sucess = true;
}
strbuf = new StringBuffer();
} else {
strbuf.append(str + "\n");
}
if (str.indexOf("-") != -1) {
if (strbuf.length() != 0) {
// found new message
saveMessage(strbuf.toString(), worker,
getDestinationFolder());
count++;
sucess = true;
}
strbuf = new StringBuffer();
} else {
strbuf.append(str + "\n");
}
Clone fragments detected by clone detection tool
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:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (str.indexOf("@") != -1) {↵ | | 1 | if (str.indexOf("-") != -1) {↵
|
2 | if (strbuf.length() != 0) {↵ | | 2 | if (strbuf.length() != 0) {↵
|
3 | // found new message↵ | | 3 | // found new message↵
|
4 | saveMessage(strbuf.toString(), worker,↵ | | 4 | saveMessage(strbuf.toString(), worker,↵
|
5 | getDestinationFolder());↵ | | 5 | getDestinationFolder());↵
|
|
6 | count++;↵ | | 6 | count++;↵
|
|
7 | sucess = true;↵ | | 7 | sucess = true;↵
|
8 | }↵ | | 8 | }↵
|
|
9 | strbuf = new StringBuffer();↵ | | 9 | strbuf = new StringBuffer();↵
|
10 | } else {↵ | | 10 | } else {↵
|
11 | strbuf.append(str + "\n");↵ | | 11 | strbuf.append(str + "\n");↵
|
12 | } | | 12 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | |
Number of node comparisons | 0 |