File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/imap/IMAPServer.java | File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/pop3/POP3Store.java | |||
Method name: int getLoginMethod()
|
Method name: int getLoginMethod()
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (result == 0) {↵ | 1 | if (result == 0) {↵ | |
2 | List supported = checkSupportedAuthenticationMethods();↵ | 2 | List supported = checkSupportedAuthenticationMethods();↵ | |
3 | if (usingSSL) {↵ | 3 | if (usingSSL) {↵ | |
4 | // NOTE if SSL is possible we just need the plain login↵ | 4 | // NOTE if SSL is possible we just need the plain login↵ | |
5 | // since SSL does the encryption for us.↵ | 5 | // since SSL does the encryption for us.↵ | |
6 | result = ((Integer) supported.get(0)).intValue();↵ | 6 | result = ((Integer) supported.get(0)).intValue();↵ | |
7 | } else {↵ | 7 | } else {↵ | |
8 | Collections.sort(supported,↵ | 8 | Collections.sort(supported,↵ | |
9 | new AuthenticationSecurityComparator());↵ | 9 | new AuthenticationSecurityComparator());↵ | |
10 | result = ((Integer) supported.get(supported.size() - 1))↵ | 10 | result = ((Integer) supported.get(supported.size() - 1))↵ | |
11 | .intValue();↵ | 11 | .intValue();↵ | |
12 | }↵ | 12 | }↵ | |
13 | } | 13 |
| |
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 20 |
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) | 2.1 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
5 | if (result == 0) | 5 | if (result == 0) | |
6 | List supported = checkSupportedAuthenticationMethods(); | 6 | List supported = checkSupportedAuthenticationMethods(); | |
7 | if (usingSSL) | 7 | if (usingSSL) | |
8 | result = ((Integer)supported.get(0)).intValue(); | 8 | result = ((Integer)supported.get(0)).intValue(); | |
else | else | |||
9 | Collections.sort(supported, new AuthenticationSecurityComparator()); | 9 | Collections.sort(supported, new AuthenticationSecurityComparator()); | |
10 | result = ((Integer)supported.get(supported.size() - 1)).intValue(); | 10 | result = ((Integer)supported.get(supported.size() - 1)).intValue(); |
Row | Violation |
---|