if ( ! file.createNewFile()) {
JOptionPane.showMessageDialog(this,
// i18n[popupeditableIoPanel.createFileError=Failed to create file {0}.\nChange file name or select a differnt file for export.]
s_stringMgr.getString("popupeditableIoPanel.createFileError", canonicalFilePathName),
// i18n[popupeditableIoPanel.exportError6=Export Error]
s_stringMgr.getString("popupeditableIoPanel.exportError6"),JOptionPane.ERROR_MESSAGE);
return;
}
if (!_updateSettings.isEnableAutomaticUpdates()) {
return;
}
runnable.stop();
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/datasetviewer/PopupEditableIOPanel.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/autocheck/UpdateCheckTimerImpl.java
|
Method name: void actionPerformed(ActionEvent)
|
|
Method name: void stop()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | if ( ! file.createNewFile()) {↵ | | 1 | if (↵
|
2 | JOptionPane.showMessageDialog(this,↵ | | |
|
3 | // i18n[popupeditableIoPanel.createFileError=Failed to create file {0}.\nChange file name or select a differnt file for export.]↵ | | |
|
4 | s_stringMgr.getString("popupeditableIoPanel.createFileError", canonicalFilePathName),↵ | | |
|
5 | // i18n[popupeditableIoPanel.exportError6=Export Error]↵ | | 2 | !_updateSettings.isEnableAutomaticUpdates()) {↵
|
| | | 3 | return;↵
|
6 | ↵ | | 4 | } ↵
|
7 | s_stringMgr.getString("popupeditableIoPanel.exportError6"),JOptionPane.ERROR_MESSAGE);↵ | | 5 | ↵
|
8 | return;↵ | | |
|
9 | } | | 6 | runnable.stop();
|
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |