if (protocol.getState() == SMTPProtocol.NOT_CONNECTED) {
// Start login procedure
protocol.openPort();
initialize();
doSSL();
}
if (!folder.exists(it.next())) {
result.clear();
sync();
return false;
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/smtp/SMTPServer.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/search/LuceneQueryEngine.java
|
Method name: void ensureConnected()
|
|
Method name: boolean checkResult(List)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (protocol.getState() == SMTPProtocol.NOT_CONNECTED) {↵ | | 1 | if (↵
|
2 | // Start login procedure↵ | | |
|
3 | protocol.openPort();↵ | | |
|
|
4 | initialize();↵ | | |
|
|
5 | doSSL();↵ | | |
|
| | | 2 | !folder.exists(it.next())) {↵
|
| | | 3 | result.clear();↵
|
| | | 4 | sync();↵
|
|
| | | 5 | return false;↵
|
6 | } | | 6 | }
|
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |