File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerBackupRestoreFrame.java | File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerCreateDatabaseFrame.java | |||
Method name: void loadBackupProperties()
|
Method name: void loadProperties()
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | try {↵ | 1 | try {↵ | |
2 | prop.load(new FileInputStream(file));↵ | 2 | prop.load(new FileInputStream(file));↵ | |
3 | } catch (FileNotFoundException e) {↵ | 3 | } catch (FileNotFoundException e) {↵ | |
4 | JOptionPane.showMessageDialog(_application.getMainFrame(), i18n.LOAD_PROP_FAILED);↵ | 4 | JOptionPane.showMessageDialog(_application.getMainFrame(), i18n.LOAD_PROP_FAILED);↵ | |
5 | log.error(e.getLocalizedMessage());↵ | 5 | log.error(e.getLocalizedMessage());↵ | |
6 | } catch (IOException e) {↵ | 6 | } catch (IOException e) {↵ | |
7 | JOptionPane.showMessageDialog(_application.getMainFrame(), i18n.LOAD_PROP_FAILED);↵ | 7 | JOptionPane.showMessageDialog(_application.getMainFrame(), i18n.LOAD_PROP_FAILED);↵ | |
8 | log.error(e.getLocalizedMessage());↵ | 8 | log.error(e.getLocalizedMessage());↵ | |
9 | } | 9 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.7 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 5 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 2.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | try |
| 5 | try | |||||||||||||||
5 | prop.load(new FileInputStream(file)); | 6 | prop.load(new FileInputStream(file)); |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.plugins.firebirdmanager.gui.FirebirdManagerBackupRestoreFrame.i18n does not match with type net.sourceforge.squirrel_sql.plugins.firebirdmanager.gui.FirebirdManagerCreateDatabaseFrame.i18n |
2 | Type net.sourceforge.squirrel_sql.plugins.firebirdmanager.gui.FirebirdManagerBackupRestoreFrame.i18n does not match with type net.sourceforge.squirrel_sql.plugins.firebirdmanager.gui.FirebirdManagerCreateDatabaseFrame.i18n |