while (it2.hasNext()) { ISearchCriteria c = it2.next(); String searchCriteriaTechnicalName = c.getTechnicalName(); // execute search doExecute(ref.getSearchTerm(), p, searchCriteriaTechnicalName, ref.isSearchInside(), ref.getStartIndex(), ref.getResultCount()); }
if (dialog.success()) { IMailFolder selectedFolder = (IMailFolder) dialog .getSelectedFolder(); String path = selectedFolder.getTreePath(); sentButton.setText(path); // int uid = selectedFolder.getUid(); // item.setSent( new Integer(uid).toString() ); }
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/gui/config/account/SpecialFoldersPanel.java
Method name: void execute(IWorkerStatusController) Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 4 Number of AST nodes: 4
1
while (it2.hasNext()) {
2
					ISearchCriteria c = it2.next
1
if (dialog.success()) {
2
				IMailFolder selectedFolder = (IMailFolder) dialog
3
();
3
						.getSelectedFolder();
4
					String searchCriteriaTechnicalName = c.getTechnicalName();
4
				String path = selectedFolder.getTreePath();
5
	
6
				// execute search
5
				
7
					doExecute(ref.getSearchTerm(), p,
8
							searchCriteriaTechnicalName, ref.isSearchIns
6
sentButton.setText(path);
9
ide(),
7
				// int uid = selectedFolder.getUid()
10
							ref.getStartIndex(), ref.getResultCount
8
;
11
());
9
				// item.setSent( new Integer(uid).toString() );
12
				}
10
			}
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 comparisons1