File path: /sql12/plugins/codecompletion/src/net/sourceforge/squirrel_sql/plugins/codecompletion/CodeCompletionInfoCollection.java | File path: /sql12/plugins/codecompletion/src/net/sourceforge/squirrel_sql/plugins/codecompletion/CodeCompletionInfoCollection.java | |||
Method name: boolean isSchema(String)
|
Method name: boolean isCatalog(String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | for (int i = 0; i < _schemas.size(); i++)↵ | 1 | for (int i = 0; i < _catalogs.size(); i++)↵ | |
2 | {↵ | 2 | {↵ | |
3 | CodeCompletionSchemaInfo info = _schemas.get(i);↵ | 3 | CodeCompletionCatalogInfo info = _catalogs.get(i);↵ | |
4 | if(info.getCompareString().equalsIgnoreCase(name))↵ | 4 | if(info.getCompareString().equalsIgnoreCase(name))↵ | |
5 | {↵ | 5 | {↵ | |
6 | return true;↵ | 6 | return true;↵ | |
7 | }↵ | 7 | }↵ | |
8 | }↵ | 8 | }↵ | |
9 | return false; | 9 |
| |
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.5 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
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) | 2.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | for (int i = 0; i < _schemas.size(); i++) |
| 1 | for (int i = 0; i < _catalogs.size(); i++) | ||||||||||||||||
2 | CodeCompletionSchemaInfo info = _schemas.get(i); |
| 2 | CodeCompletionCatalogInfo info = _catalogs.get(i); | ||||||||||||||||
3 | if (info.getCompareString().equalsIgnoreCase(name)) |
| 3 | if (info.getCompareString().equalsIgnoreCase(name)) | ||||||||||||||||
4 | return true; | 4 | return true; | |||||||||||||||||
5 | return false; | 5 | return false; |
Row | Violation |
---|