File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/search/SearchResultBox.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/search/SearchResultBox.java | |||
Method name: void SearchResultBox(IFrameMediator, ISearchProvider, ISearchCriteria, IResultPanel)
|
Method name: void resultArrived(IResultEvent)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (criteria != null)↵ | 1 | if (criteria != null)↵ | |
2 | link.setText(criteria.getTitle());↵ | 2 | link.setText(criteria.getTitle());↵ | |
3 | else↵ | 3 | else↵ | |
4 | link.setText(p.getName());↵ | 4 | link.setText(searchProvider.getName());↵ | |
5 | if (criteria != null)↵ | 5 | if (criteria != null)↵ | |
6 | link.setToolTipText(criteria.getDescription());↵ | 6 | link.setToolTipText(criteria.getDescription());↵ | |
7 | else↵ | 7 | else↵ | |
8 | link.setToolTipText(p.getDescription()); | 8 | link.setToolTipText(searchProvider.getDescription()); | |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in the same java file |
Number of node comparisons | 28 |
Number of mapped statements | 6 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | if (criteria != null) | 8 | if (criteria != null) | |||||||||||
11 | link.setText(criteria.getTitle()); | 9 | link.setText(criteria.getTitle()); | |||||||||||
else | else | |||||||||||||
12 | link.setText(p.getName()); |
| 10 | link.setText(searchProvider.getName()); | ||||||||||
13 | if (criteria != null) | 11 | if (criteria != null) | |||||||||||
14 | link.setToolTipText(criteria.getDescription()); | 12 | link.setToolTipText(criteria.getDescription()); | |||||||||||
else | else | |||||||||||||
15 | link.setToolTipText(p.getDescription()); |
| 13 | link.setToolTipText(searchProvider.getDescription()); |
Row | Violation |
---|