case SASL_LOGIN : { return MailResourceLoader.getString("dialog", "account", "authentication_sasl_login"); } case SASL_DIGEST_MD5 : { return MailResourceLoader.getString("dialog", "account", "authentication_sasl_digest_md5"); } case POP_BEFORE_SMTP : { return MailResourceLoader.getString("dialog", "account", "authentication_pop_before_smtp");
case MOST_SECURE : { return MailResourceLoader.getString("dialog", "account", "authentication_securest"); } case USER : { return MailResourceLoader.getString("dialog", "account", "authentication_user"); } case APOP : { return MailResourceLoader.getString("dialog", "account", "authentication_apop");
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/util/AuthenticationManager.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/util/AuthenticationManager.java
Method name: String getLocalizedString(int) Method name: String getLocalizedString(int)
Number of AST nodes: 6 Number of AST nodes: 6
1
case SASL_LOGIN : {
1
case MOST_SECURE : {
2
				return MailResourceLoader.getString("dialog",
2
				return MailResourceLoader.getString("dialog",
3
						"account", "authentication_sasl_login");
3
						"account", "authentication_securest");
4
			}
4
			}
5
			
5
			case SASL_DIGEST_MD5 : {
6
			case USER : {
6
				return MailResourceLoader.getString("dialog",
7
				return MailResourceLoader.getString("dialog",
7
						"account", "authentication_sasl_digest_md5");
8
						"account", "authentication_user");
8
			}
9
			}
9
			case POP_BEFORE_SMTP : {
10
			case APOP : {
10
				return MailResourceLoader.getString("dialog",
11
				return MailResourceLoader.getString("dialog",
11
						"account", "authentication_pop_before_smtp");
12
						"account", "authentication_apop");
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons24
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    12
    case SASL_LOGIN:
    12
    case SASL_LOGIN:
    2
    case MOST_SECURE:
    Differences
    Expression1Expression2Difference
    SASL_LOGINMOST_SECUREVARIABLE_NAME_MISMATCH
    Preondition Violations
    Switch case SASL_LOGIN: without corresponding switch
    Switch case MOST_SECURE: without corresponding switch
    2
    case MOST_SECURE:
    13
    return MailResourceLoader.getString("dialog", "account", "authentication_sasl_login");
    13
    return MailResourceLoader.getString("dialog", "account", "authentication_sasl_login");
    3
    return MailResourceLoader.getString("dialog", "account", "authentication_securest");
    Differences
    Expression1Expression2Difference
    "authentication_sasl_login""authentication_securest"LITERAL_VALUE_MISMATCH
    3
    return MailResourceLoader.getString("dialog", "account", "authentication_securest");
    14
    case SASL_DIGEST_MD5:
    14
    case SASL_DIGEST_MD5:
    4
    case USER:
    Differences
    Expression1Expression2Difference
    SASL_DIGEST_MD5USERVARIABLE_NAME_MISMATCH
    Preondition Violations
    Switch case SASL_DIGEST_MD5: without corresponding switch
    Switch case USER: without corresponding switch
    4
    case USER:
    15
    return MailResourceLoader.getString("dialog", "account", "authentication_sasl_digest_md5");
    15
    return MailResourceLoader.getString("dialog", "account", "authentication_sasl_digest_md5");
    5
    return MailResourceLoader.getString("dialog", "account", "authentication_user");
    Differences
    Expression1Expression2Difference
    "authentication_sasl_digest_md5""authentication_user"LITERAL_VALUE_MISMATCH
    5
    return MailResourceLoader.getString("dialog", "account", "authentication_user");
    16
    case POP_BEFORE_SMTP:
    16
    case POP_BEFORE_SMTP:
    6
    case APOP:
    Differences
    Expression1Expression2Difference
    POP_BEFORE_SMTPAPOPVARIABLE_NAME_MISMATCH
    Preondition Violations
    Switch case POP_BEFORE_SMTP: without corresponding switch
    Switch case APOP: without corresponding switch
    6
    case APOP:
    17
    return MailResourceLoader.getString("dialog", "account", "authentication_pop_before_smtp");
    17
    return MailResourceLoader.getString("dialog", "account", "authentication_pop_before_smtp");
    7
    return MailResourceLoader.getString("dialog", "account", "authentication_apop");
    Differences
    Expression1Expression2Difference
    "authentication_pop_before_smtp""authentication_apop"LITERAL_VALUE_MISMATCH
    7
    return MailResourceLoader.getString("dialog", "account", "authentication_apop");
    Precondition Violations (7)
    Row Violation
    1Switch case SASL_LOGIN: without corresponding switch
    2Switch case MOST_SECURE: without corresponding switch
    3Switch case SASL_DIGEST_MD5: without corresponding switch
    4Switch case USER: without corresponding switch
    5Switch case POP_BEFORE_SMTP: without corresponding switch
    6Switch case APOP: without corresponding switch
    7Not all possible execution flows end in a return statement