File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/schemainfo/SchemaInfo.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/schemainfo/SchemaInfo.java | |||
Method name: int loadCatalogs(int)
|
Method name: int loadSchemas(int)
|
|||
Number of AST nodes: 9 | Number of AST nodes: 9 | |||
1 | if (s_log.isDebugEnabled()) {↵ | 1 | if (s_log.isDebugEnabled()) {↵ | |
2 | s_log.debug(i18n.LOADING_CATALOGS_MSG);↵ | 2 | s_log.debug(i18n.LOADING_SCHEMAS_MSG);↵ | |
3 | start = System.currentTimeMillis();↵ | 3 | start = System.currentTimeMillis();↵ | |
4 | }↵ | 4 | }↵ | |
5 | int beginProgress = getLoadMethodProgress(progress++);↵ | 5 | int beginProgress = getLoadMethodProgress(progress++);↵ | |
6 | setProgress(i18n.LOADING_CATALOGS_MSG, beginProgress);↵ | 6 | setProgress(i18n.LOADING_SCHEMAS_MSG, beginProgress);↵ | |
7 | privateLoadCatalogs();↵ | 7 | privateLoadSchemas();↵ | |
8 | if (s_log.isDebugEnabled()) {↵ | 8 | if (s_log.isDebugEnabled()) {↵ | |
9 | finish = System.currentTimeMillis();↵ | 9 | finish = System.currentTimeMillis();↵ | |
10 | s_log.debug("Catalogs loaded in " + (finish - start) + " ms");↵ | 10 | s_log.debug("Schemas loaded in " + (finish - start) + " ms");↵ | |
11 | } | 11 |
| |
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.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 38 |
Number of mapped statements | 9 |
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) | 165.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (s_log.isDebugEnabled()) | 3 | if (s_log.isDebugEnabled()) | |||||||||||||
4 | s_log.debug(i18n.LOADING_CATALOGS_MSG); |
| 4 | s_log.debug(i18n.LOADING_SCHEMAS_MSG); | ||||||||||||
5 | start = System.currentTimeMillis(); | 5 | start = System.currentTimeMillis(); | |||||||||||||
6 | int beginProgress = getLoadMethodProgress(progress++); | 6 | int beginProgress = getLoadMethodProgress(progress++); | |||||||||||||
7 | setProgress(i18n.LOADING_CATALOGS_MSG, beginProgress); |
| 7 | setProgress(i18n.LOADING_SCHEMAS_MSG, beginProgress); | ||||||||||||
8 | privateLoadCatalogs(); |
| 8 | privateLoadSchemas(); | ||||||||||||
9 | if (s_log.isDebugEnabled()) | 9 | if (s_log.isDebugEnabled()) | |||||||||||||
10 | finish = System.currentTimeMillis(); | 10 | finish = System.currentTimeMillis(); | |||||||||||||
11 | s_log.debug("Catalogs loaded in " + (finish - start) + " ms"); |
| 11 | s_log.debug("Schemas loaded in " + (finish - start) + " ms"); |
Row | Violation |
---|---|
1 | Expression privateLoadCatalogs() is a void method call, and thus it cannot be parameterized |
2 | Expression privateLoadSchemas() is a void method call, and thus it cannot be parameterized |