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: 7 | Number of AST nodes: 7 | |||
1 | if (jtextfieldBckPort.getText().trim().length() == 0) {↵ | 1 | if (jtextfieldResPort.getText().trim().length() == 0) {↵ | |
2 | bufError.append(i18n.ERROR_PORT_MISSING + CR);↵ | 2 | bufError.append(i18n.ERROR_PORT_MISSING + CR);↵ | |
3 | if (!focusSet) {↵ | 3 | if (!focusSet) {↵ | |
4 | jtextfieldBckPort.requestFocusInWindow();↵ | 4 | jtextfieldResPort.requestFocusInWindow();↵ | |
5 | focusSet = true;↵ | 5 | focusSet = true;↵ | |
6 | }↵ | 6 | }↵ | |
7 | } else {↵ | 7 | } else {↵ | |
8 | try {↵ | 8 | try {↵ | |
9 | Integer.parseInt(jtextfieldBckPort.getText());↵ | 9 | Integer.parseInt(jtextfieldResPort.getText());↵ | |
10 | } catch (NumberFormatException e) {↵ | 10 | } catch (NumberFormatException e) {↵ | |
11 | bufError.append(i18n.ERROR_PORT_NO_INTEGER + CR);↵ | 11 | bufError.append(i18n.ERROR_PORT_NO_INTEGER + CR);↵ | |
12 | if (!focusSet) {↵ | 12 | if (!focusSet) {↵ | |
13 | jtextfieldBckPort.requestFocusInWindow();↵ | 13 | jtextfieldResPort.requestFocusInWindow();↵ | |
14 | focusSet = true;↵ | 14 | focusSet = true;↵ | |
15 | }↵ | 15 | }↵ | |
16 | }↵ | 16 | }↵ | |
17 | } | 17 |
| |
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.8 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 19 |
Number of mapped statements | 7 |
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.5 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
12 | if (jtextfieldBckPort.getText().trim().length() == 0) |
| 12 | if (jtextfieldResPort.getText().trim().length() == 0) | ||||||||||
13 | bufError.append(i18n.ERROR_PORT_MISSING + CR); | 13 | bufError.append(i18n.ERROR_PORT_MISSING + CR); | |||||||||||
14 | if (!focusSet) | 14 | if (!focusSet) | |||||||||||
15 | jtextfieldBckPort.requestFocusInWindow(); |
| 15 | jtextfieldResPort.requestFocusInWindow(); | ||||||||||
16 | focusSet = true; | 16 | focusSet = true; | |||||||||||
17 | try |
| 17 | try | ||||||||||
18 | Integer.parseInt(jtextfieldBckPort.getText()); |
| 18 | Integer.parseInt(jtextfieldResPort.getText()); |
Row | Violation |
---|