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