String productName = data.getDatabaseProductName();
String productVersion = data.getDatabaseProductVersion();
result = dialect.supportsProduct(productName, productVersion);
ISession sourceSession = sessionInfoProv.getDiffSourceSession();
ISession destSession = sessionInfoProv.getDiffDestSession();
return sourceSession != null && sourceSession.equals(destSession);
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/DialectFactory.java
|
|
File path: /sql12/plugins/dbdiff/src/net/sourceforge/squirrel_sql/plugins/dbdiff/actions/CompareAction.java
|
Method name: boolean dialectSupportsProduct(ISQLDatabaseMetaData, HibernateDialect)
|
|
Method name: boolean sourceDestSchemasDiffer()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | String productName = data.getDatabaseProductName();↵ | | |
|
2 | String productVersion = data.getDatabaseProductVersion();↵ | | |
|
3 | result = dialect.supportsProduct(productName, productVer↵ | | 1 | ISession sourceSession = sessionInfoProv.getDiffSourceSession();↵
|
| | | 2 | ISession destSession = sessionInfoProv.getDiffDestSession();↵
|
4 | sion); | | 3 | return sourceSession != null && sourceSession.equals(destSession);
|
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |