if (seperatorChar.getText().length() > 1) {
try {
seperatorChar.setText(seperatorChar.getText(0, 1));
} catch (Exception e) { /* Ignore that */ }
}
try
{
installCurrentTheme(laf, theme);
}
catch (BaseException ex)
{
s_log.error("Error installing a Theme", ex);
}
Clone fragments detected by clone detection tool
File path: /sql12/plugins/dataimport/src/net/sourceforge/squirrel_sql/plugins/dataimport/importer/csv/CSVSettingsPanel.java
|
|
File path: /sql12/plugins/laf/src/net/sourceforge/squirrel_sql/plugins/laf/AbstractPlasticController.java
|
Method name: void stateChanged()
|
|
Method name: void aboutToBeInstalled(LAFRegister, LookAndFeel)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 2
|
|
1 | if (seperatorChar.getText().length() > 1) {↵ | | |
|
2 | try {↵ | | |
|
3 | seperatorChar.setText(seperatorChar.getText(0, 1));↵ | | |
|
4 | } ↵ | | 1 | try↵
|
| | | 2 | {↵
|
| | | 3 | installCurrentTheme(laf, theme);↵
|
| | | 4 | }↵
|
5 | catch (Exception e) { /* Ignore that */ }↵ | | 5 | catch (BaseException e↵
|
| | | 6 | x)↵
|
| | | 7 | {↵
|
| | | 8 | s_log.error("Error installing a Theme", ex);↵
|
6 | } | | 9 | }
|
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 |