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"); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 24 |
Number of mapped statements | 6 |
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 | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12 | case SASL_LOGIN: |
| 2 | case MOST_SECURE: | ||||||||||||
13 | return MailResourceLoader.getString("dialog", "account", "authentication_sasl_login"); |
| 3 | return MailResourceLoader.getString("dialog", "account", "authentication_securest"); | ||||||||||||
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: |
| 6 | case APOP: | ||||||||||||
17 | return MailResourceLoader.getString("dialog", "account", "authentication_pop_before_smtp"); |
| 7 | return MailResourceLoader.getString("dialog", "account", "authentication_apop"); |
Row | Violation |
---|---|
1 | Switch case SASL_LOGIN: without corresponding switch |
2 | Switch case MOST_SECURE: without corresponding switch |
3 | Switch case SASL_DIGEST_MD5: without corresponding switch |
4 | Switch case USER: without corresponding switch |
5 | Switch case POP_BEFORE_SMTP: without corresponding switch |
6 | Switch case APOP: without corresponding switch |
7 | Not all possible execution flows end in a return statement |