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/FirebirdManagerBackupRestoreFrame.java | |||
Method name: boolean isBackupInputOK()
|
Method name: boolean isRestoreInputOK()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (!FirebirdManagerHelper.fileExists(jtextfieldBckDBFile.getText())) {↵ | 1 | if (!FirebirdManagerHelper.fileExists(jtextfieldResBackupFile.getText())) {↵ | |
2 | bufError.append(i18n.ERROR_FILENAME_NOT_EXISTS + " " ↵ | 2 | bufError.append(i18n.ERROR_FILENAME_NOT_EXISTS + " " ↵ | |
3 | + jtextfieldBckDBFile.getText() + " " + CR);↵ | 3 | + jtextfieldResBackupFile.getText() + " " + CR);↵ | |
4 | if (!focusSet) {↵ | 4 | if (!focusSet) {↵ | |
5 | jtextfieldBckDBFile.requestFocusInWindow();↵ | 5 | jtextfieldResBackupFile.requestFocusInWindow();↵ | |
6 | focusSet = true;↵ | 6 | focusSet = true;↵ | |
7 | }↵ | 7 | }↵ | |
8 | } | 8 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 14 |
Number of mapped statements | 5 |
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25 | if (!FirebirdManagerHelper.fileExists(jtextfieldBckDBFile.getText())) |
| 25 | if (!FirebirdManagerHelper.fileExists(jtextfieldResBackupFile.getText())) | ||||||||||
26 | bufError.append(i18n.ERROR_FILENAME_NOT_EXISTS + " " + jtextfieldBckDBFile.getText() + " " + CR); |
| 26 | bufError.append(i18n.ERROR_FILENAME_NOT_EXISTS + " " + jtextfieldResBackupFile.getText() + " " + CR); | ||||||||||
27 | if (!focusSet) | 27 | if (!focusSet) | |||||||||||
28 | jtextfieldBckDBFile.requestFocusInWindow(); |
| 28 | jtextfieldResBackupFile.requestFocusInWindow(); | ||||||||||
29 | focusSet = true; | 29 | focusSet = true; |
Row | Violation |
---|