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↵ | 1 | if (dialog.success()) {↵ | |
2 | IMailFolder selectedFolder = (IMailFolder) dialog↵ | |||
3 | .getSelectedFolder();↵ | |||
3 | );↵ | 4 | String path = selectedFolder.getTreePath();↵ | |
4 | doExecute(ref.getSearchTerm(), p, ref↵ | 5 | ↵ | |
5 | .getSearchCriteriaTechnicalName↵ | 6 | inboxButton.setText(path);↵ | |
6 | (),↵ | 7 | // int uid = selectedFolder.getUid();↵ | |
7 | ref.isSearchInside(), ref.getStartIndex(), ref↵ | 8 | ↵ | |
8 | .getResultCount()); | 9 | // item.setInbox( new Integer(uid).toString() );↵ | |
10 |
| |||
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 11 | IMailFolder selectedFolder = (IMailFolder)dialog.getSelectedFolder(); | ||||||||||||||||||||||
| 12 | 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()); |
| 13 | inboxButton.setText(path); |
Row | Violation |
---|---|
1 | Expression doExecute(ref.getSearchTerm(),p,ref.getSearchCriteriaTechnicalName(),ref.isSearchInside(),ref.getStartIndex(),ref.getResultCount()) is a void method call, and thus it cannot be parameterized |
2 | Expression inboxButton.setText(path) is a void method call, and thus it cannot be parameterized |
3 | Expression doExecute(ref.getSearchTerm(),p,ref.getSearchCriteriaTechnicalName(),ref.isSearchInside(),ref.getStartIndex(),ref.getResultCount()) is a void method call, and thus it cannot be parameterized |
4 | Expression inboxButton.setText(path) is a void method call, and thus it cannot be parameterized |