File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerUserManagerFrame.java | File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerBackupRestoreFrame.java | |||
Method name: boolean isInputOK()
|
Method name: boolean isRestoreInputOK()
|
|||
Number of AST nodes: 5 | Number of AST nodes: 4 | |||
1 | if (new String(jpasswordField1.getPassword()).length() > 31) {↵ | |||
2 | bufError.append(i18n.ERROR_PASSWORD_MAXLENGTH + CR);↵ | 1 | bufError.append(i18n.ERROR_PORT_MISSING + CR);↵ | |
3 | if (!focusSet) {↵ | 2 | if (!focusSet) {↵ | |
4 | jpasswordField1.requestFocusInWindow();↵ | 3 | jtextfieldResPort.requestFocusInWindow();↵ | |
5 | focusSet = true;↵ | 4 | focusSet = true;↵ | |
6 | }↵ | 5 | ↵ | |
7 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 11 |
Number of mapped statements | 4 |
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 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36 | bufError.append(i18n.ERROR_PASSWORD_MAXLENGTH + CR); |
| 13 | bufError.append(i18n.ERROR_PORT_MISSING + CR); | ||||||||||||||
37 | if (!focusSet) | 14 | if (!focusSet) | |||||||||||||||
38 | jpasswordField1.requestFocusInWindow(); |
| 15 | jtextfieldResPort.requestFocusInWindow(); | ||||||||||||||
39 | focusSet = true; | 16 | focusSet = true; |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.plugins.firebirdmanager.gui.FirebirdManagerUserManagerFrame.i18n does not match with type net.sourceforge.squirrel_sql.plugins.firebirdmanager.gui.FirebirdManagerBackupRestoreFrame.i18n |