int result = showErrorDialog(MailResourceLoader.getString(
"dialog", "error", "ssl_handshake_error")
+ ": "
+ e.getLocalizedMessage()
+ "\n"
+ MailResourceLoader.getString("dialog", "error",
"ssl_turn_off"));
if (result == 1) {
throw new CommandCancelledException();
}
// turn off SSL for the future
item.setBoolean("enable_ssl", false);
int result = showErrorDialog(MailResourceLoader.getString(
"dialog", "error", "ssl_handshake_error")
+ ": "
+ e.getLocalizedMessage()
+ "\n"
+ MailResourceLoader.getString("dialog", "error",
"ssl_turn_off"));
if (result == 1) {
throw new CommandCancelledException();
}
// turn off SSL for the future
item.setBoolean("enable_ssl", false);
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/imap/IMAPServer.java
|
Method name: void openConnection()
|
|
Method name: void openConnection()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | int result = showErrorDialog(MailResourceLoader.getString(↵ | | 1 | int result = showErrorDialog(MailResourceLoader.getString(↵
|
2 | "dialog", "error", "ssl_handshake_error")↵ | | 2 | "dialog", "error", "ssl_handshake_error")↵
|
3 | + ": "↵ | | 3 | + ": "↵
|
4 | + e.getLocalizedMessage()↵ | | 4 | + e.getLocalizedMessage()↵
|
5 | + "\n"↵ | | 5 | + "\n"↵
|
6 | + MailResourceLoader.getString("dialog", "error",↵ | | 6 | + MailResourceLoader.getString("dialog", "error",↵
|
7 | "ssl_turn_off"));↵ | | 7 | "ssl_turn_off"));↵
|
|
8 | if (result == 1) {↵ | | 8 | if (result == 1) {↵
|
9 | throw new CommandCancelledException();↵ | | 9 | throw new CommandCancelledException();↵
|
10 | }↵ | | 10 | }↵
|
|
11 | // turn off SSL for the future↵ | | 11 | // turn off SSL for the future↵
|
12 | item.setBoolean("enable_ssl", false); | | 12 | item.setBoolean("enable_ssl", false);
|
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) | 1.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 3 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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.1 |
Clone type | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |