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/context/base/StructureValue.java | |||
Method name: void executeSearch(String, String, String, boolean, int, int)
|
Method name: void setObject(String, String, Object)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (searchTerm == null)↵ | 1 | if (theName == null) {↵ | |
2 | throw new IllegalArgumentException("searchTerm == null");↵ | 2 | throw new IllegalArgumentException("name == null");↵ | |
3 | if (providerNam↵ | 3 | }↵ | |
4 | e == null)↵ | 4 | if (theNamespace == null) {↵ | |
5 | throw new IllegalArgumentException("providerName == null");↵ | 5 | throw new IllegalArgumentException("↵ | |
6 | if (criteriaNam↵ | 6 | namespace");↵ | |
7 | }↵ | |||
7 | e == null)↵ | 8 | if (value == null) {↵ | |
8 | throw new IllegalArgumentException("criteriaName == null"); | 9 | throw new IllegalArgumentException("value == null");↵ | |
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.3 |
Clones location | Clones are in different classes |
Number of node comparisons | 27 |
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) | 0.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (searchTerm == null) |
| 1 | if (theName == null) | ||||||||||||||
2 | throw new IllegalArgumentException("searchTerm == null"); |
| 2 | throw new IllegalArgumentException("name == null"); | ||||||||||||||
3 | if (providerName == null) |
| 3 | if (theNamespace == null) | ||||||||||||||
4 | throw new IllegalArgumentException("providerName == null"); |
| 4 | throw new IllegalArgumentException("namespace"); | ||||||||||||||
5 | if (criteriaName == null) |
| 5 | if (value == null) | ||||||||||||||
6 | throw new IllegalArgumentException("criteriaName == null"); |
| 6 | throw new IllegalArgumentException("value == null"); |
Row | Violation |
---|---|
1 | Type java.lang.String of variable criteriaName does not match with type java.lang.Object of variable value |