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(); templatesButton.setText(path); // int uid = selectedFolder.getUid(); // item.setTemplates( 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
				templatesButton.setText(path);
7
				// int uid = selectedFolder.getUid();
8
());
8
				// item.setTemplates( 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
    20
    String providerTechnicalName = ref.getProviderTechnicalName();
                                                                                                                                    
    21
    ISearchProvider p = getProvider(providerTechnicalName);
                                                                                                                      
                                                                                                                                                  
    23
    IMailFolder selectedFolder = (IMailFolder)dialog.getSelectedFolder();
                                                                                              
    24
    String path = selectedFolder.getTreePath();
    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());
    25
    templatesButton.setText(path);
    Differences
    Expression1Expression2Difference
    doExecutesetTextMETHOD_INVOCATION_NAME_MISMATCH
    doExecute(ref.getSearchTerm(),p,ref.getSearchCriteriaTechnicalName(),ref.isSearchInside(),ref.getStartIndex(),ref.getResultCount())templatesButton.setText(path)ARGUMENT_NUMBER_MISMATCH
    templatesButtonMISSING_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 templatesButton.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 templatesButton.setText(path) is a void method call, and thus it cannot be parameterized
    25
    templatesButton.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 templatesButton.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 templatesButton.setText(path) is a void method call, and thus it cannot be parameterized