protocol.startTLS();
usingSSL = true;
LOG.info("Switched to SSL");
protocol.startTLS();
usingSSL = true;
LOG.info("Switched to SSL");
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java
|
|
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/pop3/POP3Store.java
|
Method name: void openConnection()
|
|
Method name: void openConnection()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | protocol.startTLS();↵ | | 1 | protocol.startTLS();↵
|
|
2 | usingSSL = true;↵ | | 2 | usingSSL = true;↵
|
3 | LOG.info("Switched to SSL"); | | 3 | LOG.info("Switched to SSL");
|
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 5 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 3 |
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) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
12 | protocol.startTLS(); | | 11 | protocol.startTLS(); |
13 | usingSSL = true; | | 12 | usingSSL = true; |
14 | LOG.info("Switched to SSL"); | | 13 | LOG.info("Switched to SSL"); |
Precondition Violations (1)
Row |
Violation |
1 | Expression protocol cannot be unified with expression protocol , because common superclass org.columba.ristretto.auth.AuthenticationServer does not declare member(s) public void startTLS() throws java.io.IOException, javax.net.ssl.SSLException, org.columba.ristretto.imap.IMAPException |