if (getSQLPanelAPIOfActiveSessionWindow().confirmClose())
{
return true;
}
else
{
return false;
}
if(GLOBAL_STATE_LOAD_AND_CACHE_ALL == _globalState &&
GLOBAL_STATE_LOAD_AND_CACHE_ALL == schemaPropsCacheIsBasedOn._globalState)
{
return true;
}
else
{
return false;
}
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/Session.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/SQLAliasSchemaProperties.java
|
Method name: boolean confirmClose()
|
|
Method name: boolean loadSchemaNames(SQLAliasSchemaProperties)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if (getSQLPanelAPIOfActiveSessionWindow().confirmClose()↵ | | 1 | if(GLOBAL_STATE_LOAD_AND_CACHE_ALL == _globalState &&↵
|
2 | )↵ | | 2 | GLOBAL_STATE_LOAD_AND_CACHE_ALL == schemaPropsCacheIsBasedOn._globalState)↵
|
3 | {↵ | | 3 | ↵
|
4 | ↵ | | 4 | {↵
|
5 | return true;↵ | | 5 | return true;↵
|
6 | }↵ | | 6 | }↵
|
7 | else↵ | | 7 | else↵
|
8 | {↵ | | 8 | ↵
|
9 | ↵ | | 9 | {↵
|
10 | return false;↵ | | 10 | return false;↵
|
11 | } | | 11 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |