String providerTechnicalName = ref.getProviderTechnicalName(); ISearchProvider p = getProvider(providerTechnicalName); doExecute(ref.getSearchTerm(), p, ref .getSearchCriteriaTechnicalName(), ref.isSearchInside(), ref.getStartIndex(), ref .getResultCount());
if (dialog.success()) { IMailFolder selectedFolder = (IMailFolder) dialog .getSelectedFolder(); String path = selectedFolder.getTreePath(); trashButton.setText(path); // int uid = selectedFolder.getUid(); // item.setTrash( 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: 3 Number of AST nodes: 4
1
String providerTechnicalName = ref.getProviderTechnicalName();
2
				ISearchProvider p = getProvider(providerTechnicalName);
3
				doExecute(ref.getSearchT
1
if (dialog.success()) {
2
				IMailFolder selectedFolder = (IMailFolder) dialog
4
erm(), p, ref
3
						.getSelectedFolder()
5
						.getSearchCriteriaTechnicalName(),
6
						ref.isSearchInside(), ref.getStartIndex(), ref
7
								.getResultCount
4
;
5
				String path = selectedFolder.getTreePath();
6
				trashButton.setText(path);
7
				// int uid = selectedFolder.getUid();
8
());
8
				// item.setTrash( new Integer(uid).toString() );
9
			}
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                                                                                                                                
    5
    IMailFolder selectedFolder = (IMailFolder)dialog.getSelectedFolder();
                                                                                            
    6
    String path = selectedFolder.getTreePath();
    20
    String providerTechnicalName = ref.getProviderTechnicalName();
                                                                                                                                    
    21
    ISearchProvider p = getProvider(providerTechnicalName);
                                                                                                                      
    22
    doExecute(ref.getSearchTerm(), p, ref.getSearchCriteriaTechnicalName(), ref.isSearchInside(), ref.getStartIndex(), ref.getResultCount());
    22
    doExecute(ref.getSearchTerm(), p, ref.getSearchCriteriaTechnicalName(), ref.isSearchInside(), ref.getStartIndex(), ref.getResultCount());
    7
    trashButton.setText(path);
    Differences
    Expression1Expression2Difference
    doExecutesetTextMETHOD_INVOCATION_NAME_MISMATCH
    doExecute(ref.getSearchTerm(),p,ref.getSearchCriteriaTechnicalName(),ref.isSearchInside(),ref.getStartIndex(),ref.getResultCount())trashButton.setText(path)ARGUMENT_NUMBER_MISMATCH
    trashButtonMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression doExecute(ref.getSearchTerm(),p,ref.getSearchCriteriaTechnicalName(),ref.isSearchInside(),ref.getStartIndex(),ref.getResultCount()) is a void method call, and thus it cannot be parameterized
    Expression trashButton.setText(path) is a void method call, and thus it cannot be parameterized
    Expression doExecute(ref.getSearchTerm(),p,ref.getSearchCriteriaTechnicalName(),ref.isSearchInside(),ref.getStartIndex(),ref.getResultCount()) is a void method call, and thus it cannot be parameterized
    Expression trashButton.setText(path) is a void method call, and thus it cannot be parameterized
    7
    trashButton.setText(path);
    Precondition Violations (4)
    Row Violation
    1Expression doExecute(ref.getSearchTerm(),p,ref.getSearchCriteriaTechnicalName(),ref.isSearchInside(),ref.getStartIndex(),ref.getResultCount()) is a void method call, and thus it cannot be parameterized
    2Expression trashButton.setText(path) is a void method call, and thus it cannot be parameterized
    3Expression doExecute(ref.getSearchTerm(),p,ref.getSearchCriteriaTechnicalName(),ref.isSearchInside(),ref.getStartIndex(),ref.getResultCount()) is a void method call, and thus it cannot be parameterized
    4Expression trashButton.setText(path) is a void method call, and thus it cannot be parameterized