String productName = data.getDatabaseProductName();
String productVersion = data.getDatabaseProductVersion();
result = dialect.supportsProduct(productName, productVersion);
String pnlTitle = pnl.getTitle();
String hint = pnl.getHint();
_tabbedPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/dialects/DialectFactory.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/properties/SessionPropertiesSheet.java
|
Method name: boolean dialectSupportsProduct(ISQLDatabaseMetaData, HibernateDialect)
|
|
Method name: void createGUI()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | String productName = data.getDatabaseProductName();↵ | | 1 | String p↵
|
2 | ↵ | | 2 | nlTitle = pnl.getTitle();↵
|
3 | String productVersion = data.getDatabaseProductVersion();↵ | | 3 | String ↵
|
4 | result = dialect.supportsProduct(productName, productVersion↵ | | 4 | hint = pnl.getHint();↵
|
5 | ); | | 5 | _tabbedPane.addTab(pnlTitle, null, pnl.getPanelComponent(), hint);
|
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 |