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_DATATYPES_MSG);↵ | 2 | s_log.debug(i18n.LOADING_KEYWORDS_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_DATATYPES_MSG, beginProgress);↵ | 6 | setProgress(i18n.LOADING_KEYWORDS_MSG, beginProgress);↵ | |
7 | loadDataTypes(i18n.LOADING_DATATYPES_MSG, beginProgress);↵ | 7 | loadKeywords(i18n.LOADING_KEYWORDS_MSG, beginProgress);↵ | |
8 | if (s_log.isDebugEnabled()) {↵ | 8 | if (s_log.isDebugEnabled()) {↵ | |
9 | finish = System.currentTimeMillis();↵ | 9 | finish = System.currentTimeMillis();↵ | |
10 | s_log.debug("Data types loaded in " + (finish - start) + " ms");↵ | 10 | s_log.debug("Keywords 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 | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
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) | 178.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31 | if (s_log.isDebugEnabled()) | 21 | if (s_log.isDebugEnabled()) | ||||||||||||||||||
32 | s_log.debug(i18n.LOADING_DATATYPES_MSG); |
| 22 | s_log.debug(i18n.LOADING_KEYWORDS_MSG); | |||||||||||||||||
33 | start = System.currentTimeMillis(); | 23 | start = System.currentTimeMillis(); | ||||||||||||||||||
34 | int beginProgress = getLoadMethodProgress(progress++); | 24 | int beginProgress = getLoadMethodProgress(progress++); | ||||||||||||||||||
35 | setProgress(i18n.LOADING_DATATYPES_MSG, beginProgress); |
| 25 | setProgress(i18n.LOADING_KEYWORDS_MSG, beginProgress); | |||||||||||||||||
36 | loadDataTypes(i18n.LOADING_DATATYPES_MSG, beginProgress); |
| 26 | loadKeywords(i18n.LOADING_KEYWORDS_MSG, beginProgress); | |||||||||||||||||
37 | if (s_log.isDebugEnabled()) | 27 | if (s_log.isDebugEnabled()) | ||||||||||||||||||
38 | finish = System.currentTimeMillis(); | 28 | finish = System.currentTimeMillis(); | ||||||||||||||||||
39 | s_log.debug("Data types loaded in " + (finish - start) + " ms"); |
| 29 | s_log.debug("Keywords 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 loadKeywords(i18n.LOADING_KEYWORDS_MSG,beginProgress) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression loadDataTypes(i18n.LOADING_DATATYPES_MSG,beginProgress) is a void method call, and thus it cannot be parameterized |
4 | Expression loadKeywords(i18n.LOADING_KEYWORDS_MSG,beginProgress) is a void method call, and thus it cannot be parameterized |
5 | Clone fragment #1 returns variables progress, start , while Clone fragment #2 returns variables progress, start |