ISearchCriteria c = it2.next(); String searchCriteriaTechnicalName = c.getTechnicalName(); // execute search doExecute(ref.getSearchTerm(), p, searchCriteriaTechnicalName, ref.isSearchInside(), ref.getStartIndex(), ref.getResultCount());
List authMechanisms = AuthenticationFactory.getInstance() .getSupportedMechanisms(serverSaslMechansims); Iterator it = authMechanisms.iterator(); while (it.hasNext()) { supportedMechanisms.add(new Integer(AuthenticationManager .getSaslCode((String) it.next()))); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/search/SearchManager.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/pop3/POP3Store.java
Method name: void execute(IWorkerStatusController) Method name: List checkSupportedAuthenticationMethods()
Number of AST nodes: 3 Number of AST nodes: 4
1
ISearchCriteria c = it2.next();
1
List authMechanisms = AuthenticationFactory.getInstance()
2
					String searchCriteriaTechnicalName = c.getTechnicalName();
2
						.getSupportedMechani
3
					// execute search
4
					doExecute(ref.getSearchTerm(), p,
5
							searchCriteriaT
3
sms(serverSaslMechansims);
4
				Iterator it = authMechanisms.iterator();
5
				while (it.hasNext()) {
6
echnicalName, ref.isSearchInside(),
6
					supportedMechanisms.add(new Integer(AuthenticationManager
7
							ref.getStartIndex(), ref.getResultCount());
7
							.getSaslCode((String) it.next())));
8
				}
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 locationClones are in different classes
Number of node comparisons6