File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/gui/SmarttoolChangeValuesFrame.java | File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/gui/FirebirdManagerGrantFrame.java | |||
Method name: boolean isInputOK(int)
|
Method name: void setPrivileges()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), i18n.ERROR_COLUMNNAME_MISSING);↵ | 1 | JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), i18n.↵ | |
2 | tfColumnName↵ | 2 | GRANTMANAGER_INFO_SELECT_PERMISSION_RECEIVER);↵ | |
3 | .requestFocusInWindow();↵ | 3 | jtreeReceiver.requestFocus↵ | |
4 | return↵ | 4 | ();↵ | |
5 | false; | 5 | bSetPermissions = false; | |
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.0 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 2 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), i18n.ERROR_COLUMNNAME_MISSING); |
| 3 | JOptionPane.showMessageDialog(session.getApplication().getMainFrame(), i18n.GRANTMANAGER_INFO_SELECT_PERMISSION_RECEIVER); | ||||||||||||||
| 4 | jtreeReceiver.requestFocus(); | ||||||||||||||||
4 | tfColumnName.requestFocusInWindow(); | | ||||||||||||||||
| 5 | bSetPermissions = false; | ||||||||||||||||
5 | return false; |
| |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.plugins.smarttools.gui.SmarttoolChangeValuesFrame.i18n does not match with type net.sourceforge.squirrel_sql.plugins.firebirdmanager.gui.FirebirdManagerGrantFrame.i18n |
2 | Unmatched return false; |