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: 12 | Number of AST nodes: 12 | |||
1 | case MOST_SECURE : {↵ | |||
2 | return MailResourceLoader.getString("dialog",↵ | |||
3 | "account", "authentication_securest");↵ | |||
4 | }↵ | |||
5 | ↵ | |||
6 | case USER : {↵ | |||
7 | return MailResourceLoader.getString("dialog",↵ | |||
8 | "account", "authentication_user");↵ | |||
9 | }↵ | |||
10 | case APOP : {↵ | 1 | case APOP : {↵ | |
11 | return MailResourceLoader.getString("dialog",↵ | 2 | return MailResourceLoader.getString("dialog",↵ | |
12 | "account", "authentication_apop");↵ | 3 | "account", "authentication_apop");↵ | |
13 | }↵ | 4 | }↵ | |
14 | case LOGIN : {↵ | 5 | case LOGIN : {↵ | |
15 | return MailResourceLoader.getString("dialog",↵ | 6 | return MailResourceLoader.getString("dialog",↵ | |
16 | "account", "authentication_login");↵ | 7 | "account", "authentication_login");↵ | |
17 | }↵ | 8 | }↵ | |
18 | case SASL_PLAIN : {↵ | 9 | case SASL_PLAIN : {↵ | |
19 | return MailResourceLoader.getString("dialog",↵ | 10 | return MailResourceLoader.getString("dialog",↵ | |
20 | "account", "authentication_sasl_plain");↵ | 11 | "account", "authentication_sasl_plain");↵ | |
21 | }↵ | 12 | }↵ | |
22 | case SASL_LOGIN : {↵ | 13 | case SASL_LOGIN : {↵ | |
23 | return MailResourceLoader.getString("dialog",↵ | 14 | return MailResourceLoader.getString("dialog",↵ | |
24 | "account", "authentication_sasl_login"); | 15 | "account", "authentication_sasl_login");↵ | |
16 | }↵ | |||
17 | case SASL_DIGEST_MD5 : {↵ | |||
18 | return MailResourceLoader.getString("dialog",↵ | |||
19 | "account", "authentication_sasl_digest_md5");↵ | |||
20 | }↵ | |||
21 | case POP_BEFORE_SMTP : {↵ | |||
22 | return MailResourceLoader.getString("dialog",↵ | |||
23 |
| |||
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 | 84 |
Number of mapped statements | 12 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | case MOST_SECURE: |
| 6 | case APOP: | ||||||||||
3 | return MailResourceLoader.getString("dialog", "account", "authentication_securest"); |
| 7 | return MailResourceLoader.getString("dialog", "account", "authentication_apop"); | ||||||||||
4 | case USER: |
| 8 | case LOGIN: | ||||||||||
5 | return MailResourceLoader.getString("dialog", "account", "authentication_user"); |
| 9 | return MailResourceLoader.getString("dialog", "account", "authentication_login"); | ||||||||||
6 | case APOP: |
| 10 | case SASL_PLAIN: | ||||||||||
7 | return MailResourceLoader.getString("dialog", "account", "authentication_apop"); |
| 11 | return MailResourceLoader.getString("dialog", "account", "authentication_sasl_plain"); | ||||||||||
8 | case LOGIN: |
| 12 | case SASL_LOGIN: | ||||||||||
9 | return MailResourceLoader.getString("dialog", "account", "authentication_login"); |
| 13 | return MailResourceLoader.getString("dialog", "account", "authentication_sasl_login"); | ||||||||||
10 | case SASL_PLAIN: |
| 14 | case SASL_DIGEST_MD5: | ||||||||||
11 | return MailResourceLoader.getString("dialog", "account", "authentication_sasl_plain"); |
| 15 | return MailResourceLoader.getString("dialog", "account", "authentication_sasl_digest_md5"); | ||||||||||
12 | case SASL_LOGIN: |
| 16 | case POP_BEFORE_SMTP: | ||||||||||
13 | return MailResourceLoader.getString("dialog", "account", "authentication_sasl_login"); |
| 17 | return MailResourceLoader.getString("dialog", "account", "authentication_pop_before_smtp"); |
Row | Violation |
---|