File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/AliasInternalFrame.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/session/SessionPanel.java | |||
Method name: void dispose()
|
Method name: void propertiesHaveChanged(String)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 3 | |||
1 | if (_driversCacheLis != null)↵ | 1 | if (_toolBar != null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | _app.getDataCache().removeDriversListener(_driversCacheLis);↵ | 3 | ↵ | |
4 | _driversCacheLis = null;↵ | |||
5 | }↵ | |||
6 | super.dispose(); | 4 | remove(_toolBar);↵ | |
5 | _toolBar = null;↵ | |||
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 3 |
Number of unmapped statements in the second code fragment | 2 |
Time elapsed for statement mapping (ms) | 16.4 |
Clone type | Type 3 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (_driversCacheLis != null) |
| 18 | if (_toolBar != null) | ||||||||||||||
2 | _app.getDataCache().removeDriversListener(_driversCacheLis); |
| | |||||||||||||||
3 | _driversCacheLis = null; |
| | |||||||||||||||
|
| 19 | remove(_toolBar); | |||||||||||||||
|
| 20 | _toolBar = null; | |||||||||||||||
4 | super.dispose(); | |
Row | Violation |
---|---|
1 | Type net.sourceforge.squirrel_sql.client.gui.db.AliasInternalFrame.DriversCacheListener of variable _driversCacheLis does not match with type net.sourceforge.squirrel_sql.client.gui.session.SessionPanel.MyToolBar of variable _toolBar |
2 | Unmatched statement _app.getDataCache().removeDriversListener(_driversCacheLis); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Unmatched statement _driversCacheLis=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
4 | Unmatched statement remove(_toolBar); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
5 | Unmatched statement _toolBar=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
6 | The refactoring of the clones is infeasible, because the number of macthed statements is equal to zero |