if (result == 0) { List supported = checkSupportedAuthenticationMethods(); if (usingSSL) { // NOTE if SSL is possible we just need the plain login // since SSL does the encryption for us. result = ((Integer) supported.get(0)).intValue(); } else { Collections.sort(supported, new AuthenticationSecurityComparator()); result = ((Integer) supported.get(supported.size() - 1)) .intValue();
if (result == 0) { List supported = checkSupportedAuthenticationMethods(); if (usingSSL) { // NOTE if SSL is possible we just need the plain login // since SSL does the encryption for us. result = ((Integer) supported.get(0)).intValue(); } else { Collections.sort(supported, new AuthenticationSecurityComparator()); result = ((Integer) supported.get(supported.size() - 1)) .intValue();
Clone fragments detected by clone detection tool
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: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
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
			
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0