File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/search/CalendarSearchProvider.java | File path: /columba-1.4-src/contact/src/main/java/org/columba/contact/search/ContactSearchProvider.java | |||
Method name: List
|
Method name: List
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (searchTerm == null)↵ | 1 | if (searchTerm == null)↵ | |
2 | throw new IllegalArgumentException("searchTerm == null");↵ | 2 | throw new IllegalArgumentException("searchTerm == null");↵ | |
3 | if (searchCriteriaTechnicalName == null)↵ | 3 | if (criteriaTechnicalName == null)↵ | |
4 | throw new IllegalArgumentException(↵ | 4 | throw new IllegalArgumentException(↵ | |
5 | "searchCriteriaTechnicalName == null");↵ | 5 | "criteriaTechnicalName == null");↵ | |
6 | List<ISearchResult> result = new Vector<ISearchResult>(); | 6 |
| |
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 14 |
Number of mapped statements | 5 |
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) | 0.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (searchTerm == null) | 1 | if (searchTerm == null) | |||||||||||
2 | throw new IllegalArgumentException("searchTerm == null"); | 2 | throw new IllegalArgumentException("searchTerm == null"); | |||||||||||
3 | if (searchCriteriaTechnicalName == null) |
| 3 | if (criteriaTechnicalName == null) | ||||||||||
4 | throw new IllegalArgumentException("searchCriteriaTechnicalName == null"); |
| 4 | throw new IllegalArgumentException("criteriaTechnicalName == null"); | ||||||||||
5 | List<ISearchResult> result = new Vector<ISearchResult>(); | 5 | List<ISearchResult> result = new Vector<ISearchResult>(); |
Row | Violation |
---|