int result = showErrorDialog(MailResourceLoader.getString( "dialog", "error", "ssl_not_supported") + "\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_not_supported") + "\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_not_supported")
2
							"dialog", "error", "ssl_not_supported")
3
						+ "\n"
3
							+ "\n"
4
						+ MailResourceLoader.getString("dialog", "error",
4
							+ MailResourceLoader.getString("dialog", "error",
5
								"ssl_turn_off"));
5
									"ssl_turn_off"));
6
				if (result == 1) {
6
					if (result == 1) {
7
					throw new CommandCancelledException();
7
						throw new CommandCancelledException();
8
				}
8
					}
9
				// turn off SSL for the future
9
					// turn off SSL for the future
10
				item.setBoolean("enable_ssl", false);
10
					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.7
Clones locationClones are in the same method
Number of node comparisons3