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);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)1.8
Clones locationClones are in the same method
Number of node comparisons3