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 sessionEnding(ISession)
|
Method name: void sessionEnding(ISession)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | super.sessionEnding(session);↵ | 1 | super.sessionEnding(session);↵ | |
2 | IWidget[] frames = session.getApplication().getMainFrame().getDesktopContainer().getAllWidgets();↵ | 2 | IWidget[] frames = session.getApplication().getMainFrame().getDesktopContainer().getAllWidgets();↵ | |
3 | for (int i = 0; i < frames.length; i++) {↵ | 3 | for (int i = 0; i < frames.length; i++) {↵ | |
4 | if (frames[i] instanceof SmarttoolFindBadNullValuesFrame↵ | 4 | if (frames[i] instanceof FirebirdManagerGrantFrame↵ | |
5 | || frames[i] instanceof SmarttoolChangeValuesFrame↵ | 5 | || frames[i] instanceof ↵ | |
6 | || frames[i] instanceof SmarttoolMissingIndicesFrame↵ | |||
7 | ) {↵ | 6 | FirebirdManagerRoleFrame) {↵ | |
8 | frames[i].dispose();↵ | 7 | frames[i].dispose();↵ | |
9 | }↵ | 8 | }↵ | |
10 | } | 9 |
| |
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.6 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
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) | 2.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.sessionEnding(session); |
| 1 | super.sessionEnding(session); | ||||||||||||||||||||||
2 | IWidget[] frames = session.getApplication().getMainFrame().getDesktopContainer().getAllWidgets(); | 2 | IWidget[] frames = session.getApplication().getMainFrame().getDesktopContainer().getAllWidgets(); | |||||||||||||||||||||||
3 | for (int i = 0; i < frames.length; i++) | 3 | for (int i = 0; i < frames.length; i++) | |||||||||||||||||||||||
4 | if (frames[i] instanceof SmarttoolFindBadNullValuesFrame || frames[i] instanceof SmarttoolChangeValuesFrame || frames[i] instanceof SmarttoolMissingIndicesFrame) |
| 4 | if (frames[i] instanceof FirebirdManagerGrantFrame || frames[i] instanceof FirebirdManagerRoleFrame) | ||||||||||||||||||||||
5 | frames[i].dispose(); | 5 | frames[i].dispose(); |
Row | Violation |
---|---|
1 | Super method call super.sessionEnding(session); cannot be extracted from method |
2 | Super method call super.sessionEnding(session); cannot be extracted from method |
3 | Expression frames[i] instanceof SmarttoolFindBadNullValuesFrame cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression frames[i] instanceof FirebirdManagerGrantFrame cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression frames[i] instanceof SmarttoolChangeValuesFrame cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression frames[i] instanceof FirebirdManagerRoleFrame cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression frames[i] instanceof SmarttoolFindBadNullValuesFrame || frames[i] instanceof SmarttoolChangeValuesFrame || frames[i] instanceof SmarttoolMissingIndicesFrame cannot be parameterized, because it has dependencies to/from statements that will be extracted |
8 | Expression frames[i] instanceof FirebirdManagerGrantFrame || frames[i] instanceof FirebirdManagerRoleFrame cannot be parameterized, because it has dependencies to/from statements that will be extracted |