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 (jtextfieldBckDBHost.getText().trim().length() == 0) {↵ | 1 | if (jtextfieldResDBFile.getText().trim().length() == 0) {↵ | |
2 | bufError.append(i18n.ERROR_SERVER_MISSING + CR);↵ | 2 | bufError.append(i18n.ERROR_FILENAME_DATABASE_MISSING + CR);↵ | |
3 | if (!focusSet) {↵ | 3 | if (!focusSet) {↵ | |
4 | jtextfieldBckDBHost.requestFocusInWindow();↵ | 4 | jtextfieldResDBFile.requestFocusInWindow();↵ | |
5 | focusSet = true;↵ | 5 | focusSet = true;↵ | |
6 | }↵ | 6 | }↵ | |
7 | } | 7 |
| |
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 13 |
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) | 1.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | if (jtextfieldBckDBHost.getText().trim().length() == 0) |
| 30 | if (jtextfieldResDBFile.getText().trim().length() == 0) | ||||||||||
8 | bufError.append(i18n.ERROR_SERVER_MISSING + CR); |
| 31 | bufError.append(i18n.ERROR_FILENAME_DATABASE_MISSING + CR); | ||||||||||
9 | if (!focusSet) | 32 | if (!focusSet) | |||||||||||
10 | jtextfieldBckDBHost.requestFocusInWindow(); |
| 33 | jtextfieldResDBFile.requestFocusInWindow(); | ||||||||||
11 | focusSet = true; | 34 | focusSet = true; |
Row | Violation |
---|