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: 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_KEYWORDS_MSG);↵ | 2 | s_log.debug(i18n.LOADING_SCHEMAS_MSG);↵ | |
3 | start = System.currentTimeMillis();↵ | 3 | start = System.currentTimeMillis();↵ | |
4 | } ↵ | 4 | ↵ | |
5 | ↵ | 5 | }↵ | |
6 | int beginProgress = getLoadMethodProgress(progress++);↵ | 6 | int beginProgress = getLoadMethodProgress(progress++);↵ | |
7 | setProgress(i18n.LOADING_KEYWORDS_MSG, beginProgress);↵ | 7 | setProgress(i18n.LOADING_SCHEMAS_MSG, beginProgress);↵ | |
8 | loadKeywords(i18n.LOADING_KEYWORDS_MSG, beginProgress);↵ | 8 | privateLoadSchemas();↵ | |
9 | if (s_log.isDebugEnabled()) {↵ | 9 | if (s_log.isDebugEnabled()) {↵ | |
10 | finish = System.currentTimeMillis();↵ | 10 | finish = System.currentTimeMillis();↵ | |
11 | s_log.debug("Keywords loaded in " + (finish - start) + " ms");↵ | 11 | s_log.debug("Schemas loaded in " + (finish - start) + " ms");↵ | |
12 | } | 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) | 178.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21 | if (s_log.isDebugEnabled()) | 3 | if (s_log.isDebugEnabled()) | ||||||||||||||||||||
22 | s_log.debug(i18n.LOADING_KEYWORDS_MSG); |
| 4 | s_log.debug(i18n.LOADING_SCHEMAS_MSG); | |||||||||||||||||||
23 | start = System.currentTimeMillis(); | 5 | start = System.currentTimeMillis(); | ||||||||||||||||||||
24 | int beginProgress = getLoadMethodProgress(progress++); | 6 | int beginProgress = getLoadMethodProgress(progress++); | ||||||||||||||||||||
25 | setProgress(i18n.LOADING_KEYWORDS_MSG, beginProgress); |
| 7 | setProgress(i18n.LOADING_SCHEMAS_MSG, beginProgress); | |||||||||||||||||||
26 | loadKeywords(i18n.LOADING_KEYWORDS_MSG, beginProgress); |
| 8 | privateLoadSchemas(); | |||||||||||||||||||
27 | if (s_log.isDebugEnabled()) | 9 | if (s_log.isDebugEnabled()) | ||||||||||||||||||||
28 | finish = System.currentTimeMillis(); | 10 | finish = System.currentTimeMillis(); | ||||||||||||||||||||
29 | s_log.debug("Keywords loaded in " + (finish - start) + " ms"); |
| 11 | s_log.debug("Schemas loaded in " + (finish - start) + " ms"); |
Row | Violation |
---|---|
1 | Expression loadKeywords(i18n.LOADING_KEYWORDS_MSG,beginProgress) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression loadKeywords(i18n.LOADING_KEYWORDS_MSG,beginProgress) is a void method call, and thus it cannot be parameterized |
3 | Expression privateLoadSchemas() is a void method call, and thus it cannot be parameterized |
4 | Expression loadKeywords(i18n.LOADING_KEYWORDS_MSG,beginProgress) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression loadKeywords(i18n.LOADING_KEYWORDS_MSG,beginProgress) is a void method call, and thus it cannot be parameterized |
6 | Expression privateLoadSchemas() is a void method call, and thus it cannot be parameterized |
7 | Clone fragment #1 returns variables progress, start , while Clone fragment #2 returns variables progress |