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: void privateLoadAll()
|
|||
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_DATATYPES_MSG);↵ | |
3 | start = System.currentTimeMillis();↵ | 3 | start = System.currentTimeMillis();↵ | |
4 | }↵ | 4 | ↵ | |
5 | }↵ | |||
5 | int beginProgress = getLoadMethodProgress(progress++);↵ | 6 | int beginProgress = getLoadMethodProgress(progress++);↵ | |
6 | setProgress(i18n.LOADING_CATALOGS_MSG, beginProgress);↵ | 7 | setProgress(i18n.LOADING_DATATYPES_MSG, beginProgress);↵ | |
7 | privateLoadCatalogs();↵ | 8 | loadDataTypes(i18n.LOADING_DATATYPES_MSG, beginProgress);↵ | |
8 | if (s_log.isDebugEnabled()) {↵ | 9 | if (s_log.isDebugEnabled()) {↵ | |
9 | finish = System.currentTimeMillis();↵ | 10 | finish = System.currentTimeMillis();↵ | |
10 | s_log.debug("Catalogs loaded in " + (finish - start) + " ms");↵ | 11 | s_log.debug("Data types loaded in " + (finish - start) + " ms");↵ | |
11 | } | 12 | } | |
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.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) | 171.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (s_log.isDebugEnabled()) | 31 | if (s_log.isDebugEnabled()) | ||||||||||||||||||||
4 | s_log.debug(i18n.LOADING_CATALOGS_MSG); |
| 32 | s_log.debug(i18n.LOADING_DATATYPES_MSG); | |||||||||||||||||||
5 | start = System.currentTimeMillis(); | 33 | start = System.currentTimeMillis(); | ||||||||||||||||||||
6 | int beginProgress = getLoadMethodProgress(progress++); | 34 | int beginProgress = getLoadMethodProgress(progress++); | ||||||||||||||||||||
7 | setProgress(i18n.LOADING_CATALOGS_MSG, beginProgress); |
| 35 | setProgress(i18n.LOADING_DATATYPES_MSG, beginProgress); | |||||||||||||||||||
8 | privateLoadCatalogs(); |
| 36 | loadDataTypes(i18n.LOADING_DATATYPES_MSG, beginProgress); | |||||||||||||||||||
9 | if (s_log.isDebugEnabled()) | 37 | if (s_log.isDebugEnabled()) | ||||||||||||||||||||
10 | finish = System.currentTimeMillis(); | 38 | finish = System.currentTimeMillis(); | ||||||||||||||||||||
11 | s_log.debug("Catalogs loaded in " + (finish - start) + " ms"); |
| 39 | s_log.debug("Data types loaded in " + (finish - start) + " ms"); |
Row | Violation |
---|---|
1 | Expression loadDataTypes(i18n.LOADING_DATATYPES_MSG,beginProgress) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression privateLoadCatalogs() is a void method call, and thus it cannot be parameterized |
3 | Expression loadDataTypes(i18n.LOADING_DATATYPES_MSG,beginProgress) is a void method call, and thus it cannot be parameterized |
4 | Expression loadDataTypes(i18n.LOADING_DATATYPES_MSG,beginProgress) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression privateLoadCatalogs() is a void method call, and thus it cannot be parameterized |
6 | Expression loadDataTypes(i18n.LOADING_DATATYPES_MSG,beginProgress) is a void method call, and thus it cannot be parameterized |
7 | Clone fragment #1 returns variables progress , while Clone fragment #2 returns variables progress, start |