if (_catalogsCmb != null)
{
final ISQLConnection conn = _session.getSQLConnection();
if (!StringUtilities.areStringsEqual(conn.getCatalog(), _catalogsCmb.getSelectedCatalog()))
{
_catalogsCmb.setSelectedCatalog(conn.getCatalog());
if (_exportDriversChk.getModel().isSelected()) {
File f = new File(_exportDriversText.getText());
if (!f.exists() || confirmOverwrite(f)) {
_app.getDataCache().saveDrivers(f);
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/session/CatalogsPanel.java
|
|
File path: /sql12/plugins/exportconfig/src/net/sourceforge/squirrel_sql/plugins/exportconfig/gui/ExportPanelBuilder.java
|
Method name:
|
|
Method name:
|
Number of AST nodes: 0
|
|
Number of AST nodes: 0
|
|
1 | if (_catalogsCmb != null)↵ | | 1 | if (_↵
|
2 | {↵ | | |
|
3 | final ISQLConnection conn = _session.getSQLConnection();↵ | | |
|
4 | if (!StringUtilities.areStringsEqual(conn.getCatalog(), _catalogsCmb.getSelectedCatalog()))↵ | | |
|
5 | {↵ | | |
|
6 | _catalogsCmb.setSelectedCatalog(conn.getCatalog());↵ | | |
|
7 | | | 2 | exportDriversChk.getModel().isSelected()) {↵
|
| | | 3 | File f = new File(_exportDriversText.getText()); ↵
|
| | | 4 | if (!f.exists() || confirmOverwrite(f)) {↵
|
| | | 5 | _app.getDataCache().saveDrivers(f);↵
|
| | | 6 |
|
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 | |
Number of node comparisons | 0 |