if (dialog.success()) {
IFolder folder = dialog.getSelectedFolder();
String path = folder.getTreePath();
selectButton.setText(path);
}
while (it2.hasNext()) {
ISearchCriteria c = it2.next();
String searchCriteriaTechnicalName = c
.getTechnicalName();
// execute search
doExecute(ref.getSearchTerm(), p,
searchCriteriaTechnicalName, ref
.isSearchInside(), ref.getStartIndex(),
ref.getResultCount());
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/search/SearchFrame.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/search/SearchManager.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: void execute(IWorkerStatusController)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (dialog.success()) {↵ | | |
|
2 | IFolder folder = dialog.getSelectedFolder↵ | | 1 | while (it2.hasNext()) {↵
|
3 | ();↵ | | 2 | ISearchCriteria c = it2.next();↵
|
4 | String path = folder.getTreePath();↵ | | 3 | String ↵
|
|
5 | selectButton.setText(path↵ | | 4 | searchCriteriaTechnicalName = c↵
|
| | | 5 | .getTechnicalName();↵
|
| | | 6 | // execute search↵
|
| | | 7 | doExecute(ref.getSearchTerm(), p,↵
|
| | | 8 | searchCriteriaTechnicalName, ref↵
|
| | | 9 | .isSearchInside(), ref.getStartIndex(),↵
|
6 | );↵ | | 10 | ref.getResultCount());↵
|
7 | } | | 11 | }
|
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 | 1 |