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"); } case LOGIN : { return MailResourceLoader.getString("dialog", "account", "authentication_login");
case SASL_PLAIN : { return MailResourceLoader.getString("dialog", "account", "authentication_sasl_plain"); } 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");
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: 8 Number of AST nodes: 8
1
case MOST_SECURE : {
1
case SASL_PLAIN : {
2
				return MailResourceLoader.getString("dialog",
2
				return MailResourceLoader.getString("dialog",
3
						"account", "authentication_securest");
3
						"account", "authentication_sasl_plain");
4
			}
4
			}
5
			
6
			case USER : {
5
			case SASL_LOGIN : {
7
				return MailResourceLoader.getString("dialog",
6
				return MailResourceLoader.getString("dialog",
8
						"account", "authentication_user");
7
						"account", "authentication_sasl_login");
9
			}
8
			}
10
			case APOP : {
9
			case SASL_DIGEST_MD5 : {
11
				return MailResourceLoader.getString("dialog",
10
				return MailResourceLoader.getString("dialog",
12
						"account", "authentication_apop");
11
						"account", "authentication_sasl_digest_md5");
13
			}
12
			}
14
			case LOGIN : {
13
			case POP_BEFORE_SMTP : {
15
				return MailResourceLoader.getString("dialog",
14
				return MailResourceLoader.getString("dialog",
16
						"account", "authentication_login");
15
						"account", "authentication_pop_before_smtp");
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons40
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements8
    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
    2
    case MOST_SECURE:
    2
    case MOST_SECURE:
    10
    case SASL_PLAIN:
    Differences
    Expression1Expression2Difference
    MOST_SECURESASL_PLAINVARIABLE_NAME_MISMATCH
    10
    case SASL_PLAIN:
    3
    return MailResourceLoader.getString("dialog", "account", "authentication_securest");
    3
    return MailResourceLoader.getString("dialog", "account", "authentication_securest");
    11
    return MailResourceLoader.getString("dialog", "account", "authentication_sasl_plain");
    Differences
    Expression1Expression2Difference
    "authentication_securest""authentication_sasl_plain"LITERAL_VALUE_MISMATCH
    11
    return MailResourceLoader.getString("dialog", "account", "authentication_sasl_plain");
    4
    case USER:
    4
    case USER:
    12
    case SASL_LOGIN:
    Differences
    Expression1Expression2Difference
    USERSASL_LOGINVARIABLE_NAME_MISMATCH
    12
    case SASL_LOGIN:
    5
    return MailResourceLoader.getString("dialog", "account", "authentication_user");
    5
    return MailResourceLoader.getString("dialog", "account", "authentication_user");
    13
    return MailResourceLoader.getString("dialog", "account", "authentication_sasl_login");
    Differences
    Expression1Expression2Difference
    "authentication_user""authentication_sasl_login"LITERAL_VALUE_MISMATCH
    13
    return MailResourceLoader.getString("dialog", "account", "authentication_sasl_login");
    6
    case APOP:
    6
    case APOP:
    14
    case SASL_DIGEST_MD5:
    Differences
    Expression1Expression2Difference
    APOPSASL_DIGEST_MD5VARIABLE_NAME_MISMATCH
    14
    case SASL_DIGEST_MD5:
    7
    return MailResourceLoader.getString("dialog", "account", "authentication_apop");
    7
    return MailResourceLoader.getString("dialog", "account", "authentication_apop");
    15
    return MailResourceLoader.getString("dialog", "account", "authentication_sasl_digest_md5");
    Differences
    Expression1Expression2Difference
    "authentication_apop""authentication_sasl_digest_md5"LITERAL_VALUE_MISMATCH
    15
    return MailResourceLoader.getString("dialog", "account", "authentication_sasl_digest_md5");
    8
    case LOGIN:
    8
    case LOGIN:
    16
    case POP_BEFORE_SMTP:
    Differences
    Expression1Expression2Difference
    LOGINPOP_BEFORE_SMTPVARIABLE_NAME_MISMATCH
    16
    case POP_BEFORE_SMTP:
    9
    return MailResourceLoader.getString("dialog", "account", "authentication_login");
    9
    return MailResourceLoader.getString("dialog", "account", "authentication_login");
    17
    return MailResourceLoader.getString("dialog", "account", "authentication_pop_before_smtp");
    Differences
    Expression1Expression2Difference
    "authentication_login""authentication_pop_before_smtp"LITERAL_VALUE_MISMATCH
    17
    return MailResourceLoader.getString("dialog", "account", "authentication_pop_before_smtp");
    Precondition Violations (0)
    Row Violation