File path: /sql12/plugins/smarttools/src/net/sourceforge/squirrel_sql/plugins/smarttools/SmarttoolsPlugin.java | File path: /sql12/plugins/firebirdmanager/src/net/sourceforge/squirrel_sql/plugins/firebirdmanager/FirebirdManagerPlugin.java | |||
Method name: void actionPerformed(ActionEvent)
|
Method name: void actionPerformed(ActionEvent)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | frame.setSelected(true);↵ | 1 | frame.setSelected(true);↵ | |
2 | if (frame instanceof ISmarttoolFrame) {↵ | 2 | if (frame instanceof IFirebirdManagerFrame) {↵ | |
3 | ((ISmarttoolFrame)frame).setFocusToFirstEmptyInputField();↵ | 3 | ((IFirebirdManagerFrame)frame).setFocusToFirstEmptyInputField();↵ | |
4 | } | 4 |
| |
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.7 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |
Number of mapped statements | 3 |
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.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
21 | frame.setSelected(true); | 23 | frame.setSelected(true); | ||||||||||||||||||
22 | if (frame instanceof ISmarttoolFrame) |
| 24 | if (frame instanceof IFirebirdManagerFrame) | |||||||||||||||||
23 | ((ISmarttoolFrame)frame).setFocusToFirstEmptyInputField(); |
| 25 | ((IFirebirdManagerFrame)frame).setFocusToFirstEmptyInputField(); |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.plugins.smarttools.gui.ISmarttoolFrame does not match with type net.sourceforge.squirrel_sql.plugins.firebirdmanager.gui.IFirebirdManagerFrame |
2 | Expression (ISmarttoolFrame)frame cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression (IFirebirdManagerFrame)frame cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Type net.sourceforge.squirrel_sql.plugins.smarttools.gui.ISmarttoolFrame does not match with type net.sourceforge.squirrel_sql.plugins.firebirdmanager.gui.IFirebirdManagerFrame |
5 | Expression (ISmarttoolFrame)frame cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression (IFirebirdManagerFrame)frame cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Type net.sourceforge.squirrel_sql.plugins.smarttools.gui.ISmarttoolFrame does not match with type net.sourceforge.squirrel_sql.plugins.firebirdmanager.gui.IFirebirdManagerFrame |
8 | The refactoring of the clones is infeasible, because classes and do not have a common superclass |