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↵ | | 2 | .getSupportedMechani↵
|
3 | .getTechnicalName();↵ | | |
|
4 | // execute search↵ | | |
|
5 | doExecute(ref.getSearchTerm(), p,↵ | | |
|
6 | searchCriteriaTechnicalName, ref↵ | | |
|
7 | .isSearchInside(), ref.getStartIndex(),↵ | | 3 | sms(serverSaslMechansims);↵
|
| | | 4 | Iterator it = authMechanisms.iterator();↵
|
| | | 5 | while (it.hasNext()) {↵
|
| | | 6 | supportedMechanisms.add(new Integer(AuthenticationManager↵
|
8 | ref.getResultCount()); | | 7 | .getSaslCode((String) it.next())));↵
|
| | | 8 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |