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: 10 | Number of AST nodes: 10 | |||
1 | case LOGIN : {↵ | 1 | case MOST_SECURE : {↵ | |
2 | return MailResourceLoader.getString("dialog",↵ | 2 | return MailResourceLoader.getString("dialog",↵ | |
3 | "account", "authentication_login");↵ | 3 | "account", "authentication_securest");↵ | |
4 | }↵ | 4 | }↵ | |
5 | ↵ | |||
5 | case SASL_PLAIN : {↵ | 6 | case USER : {↵ | |
6 | return MailResourceLoader.getString("dialog",↵ | 7 | return MailResourceLoader.getString("dialog",↵ | |
7 | "account", "authentication_sasl_plain");↵ | 8 | "account", "authentication_user");↵ | |
8 | }↵ | 9 | }↵ | |
9 | case SASL_LOGIN : {↵ | 10 | case APOP : {↵ | |
10 | return MailResourceLoader.getString("dialog",↵ | 11 | return MailResourceLoader.getString("dialog",↵ | |
11 | "account", "authentication_sasl_login");↵ | 12 | "account", "authentication_apop");↵ | |
12 | }↵ | 13 | }↵ | |
13 | case SASL_DIGEST_MD5 : {↵ | 14 | case LOGIN : {↵ | |
14 | return MailResourceLoader.getString("dialog",↵ | 15 | return MailResourceLoader.getString("dialog",↵ | |
15 | "account", "authentication_sasl_digest_md5");↵ | 16 | "account", "authentication_login");↵ | |
16 | }↵ | 17 | }↵ | |
17 | case POP_BEFORE_SMTP : {↵ | 18 | case SASL_PLAIN : {↵ | |
18 | return MailResourceLoader.getString("dialog",↵ | 19 | return MailResourceLoader.getString("dialog",↵ | |
19 | "account", "authentication_pop_before_smtp"); | 20 | "account", "authentication_sasl_plain"); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 60 |
Number of mapped statements | 10 |
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.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8 | case LOGIN: | 8 | case LOGIN: | |||||||||||
9 | return MailResourceLoader.getString("dialog", "account", "authentication_login"); | 9 | return MailResourceLoader.getString("dialog", "account", "authentication_login"); | |||||||||||
10 | case SASL_PLAIN: | 10 | case SASL_PLAIN: | |||||||||||
11 | return MailResourceLoader.getString("dialog", "account", "authentication_sasl_plain"); | 11 | return MailResourceLoader.getString("dialog", "account", "authentication_sasl_plain"); | |||||||||||
12 | case SASL_LOGIN: |
| 6 | case APOP: | ||||||||||
13 | return MailResourceLoader.getString("dialog", "account", "authentication_sasl_login"); |
| 7 | return MailResourceLoader.getString("dialog", "account", "authentication_apop"); | ||||||||||
14 | case SASL_DIGEST_MD5: |
| 4 | case USER: | ||||||||||
15 | return MailResourceLoader.getString("dialog", "account", "authentication_sasl_digest_md5"); |
| 5 | return MailResourceLoader.getString("dialog", "account", "authentication_user"); | ||||||||||
16 | case POP_BEFORE_SMTP: |
| 2 | case MOST_SECURE: | ||||||||||
17 | return MailResourceLoader.getString("dialog", "account", "authentication_pop_before_smtp"); |
| 3 | return MailResourceLoader.getString("dialog", "account", "authentication_securest"); |
Row | Violation |
---|