File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerCreateDatabaseFrame.java | File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerCreateDatabaseFrame.java | |||
Method name: boolean isInputOK()
|
Method name: boolean isInputOK()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (jtextfieldServer.getText().trim().length() == 0) {↵ | 1 | if (jtextfieldUsername.getText().trim().length() == 0) {↵ | |
2 | bufError.append(i18n.CREATEDB_ERROR_SERVER_MISSING + CR);↵ | 2 | bufError.append(i18n.CREATEDB_ERROR_USERNAME_MISSING + CR);↵ | |
3 | if (!focusSet) {↵ | 3 | if (!focusSet) {↵ | |
4 | jtextfieldServer.requestFocusInWindow();↵ | 4 | jtextfieldUsername.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 in the same method |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17 | if (jtextfieldServer.getText().trim().length() == 0) |
| 29 | if (jtextfieldUsername.getText().trim().length() == 0) | ||||||||||
18 | bufError.append(i18n.CREATEDB_ERROR_SERVER_MISSING + CR); |
| 30 | bufError.append(i18n.CREATEDB_ERROR_USERNAME_MISSING + CR); | ||||||||||
19 | if (!focusSet) | 31 | if (!focusSet) | |||||||||||
20 | jtextfieldServer.requestFocusInWindow(); |
| 32 | jtextfieldUsername.requestFocusInWindow(); | ||||||||||
21 | focusSet = true; | 33 | focusSet = true; |
Row | Violation |
---|