File path: /columba-1.4-src/core/src/main/java/org/columba/core/search/SearchManager.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/search/SearchManager.java | |||
Method name: void executeSearch(String, String, String, boolean, int, int)
|
Method name: void executeSearch(String, boolean, int, int)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | throw new IllegalArgumentException("criteriaName == null");↵ | 1 | throw new IllegalArgumentException("searchTerm == null");↵ | |
2 | if (startIndex < 0)↵ | 2 | if (startIndex < 0)↵ | |
3 | throw new IllegalArgumentException("startIndex must be >= 0");↵ | 3 | throw new IllegalArgumentException("startIndex must be >= 0");↵ | |
4 | if (resultCount <= 0)↵ | 4 | if (resultCount <= 0)↵ | |
5 | throw new IllegalArgumentException("resultCount must be > 0"); | 5 |
| |
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 declared in the same class |
Number of node comparisons | 13 |
Number of mapped statements | 4 |
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.5 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
7 | if (startIndex < 0) | 3 | if (startIndex < 0) | |
8 | throw new IllegalArgumentException("startIndex must be >= 0"); | 4 | throw new IllegalArgumentException("startIndex must be >= 0"); | |
9 | if (resultCount <= 0) | 5 | if (resultCount <= 0) | |
10 | throw new IllegalArgumentException("resultCount must be > 0"); | 6 | throw new IllegalArgumentException("resultCount must be > 0"); |
Row | Violation |
---|