File path: /sql12/plugins/syntax/src/net/sourceforge/squirrel_sql/plugins/syntax/SyntaxPreferencesPanel.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/mainpanel/ResultTab.java | |||
Method name: void removeNotify()
|
Method name: void removeNotify()
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | super.removeNotify();↵ | 1 | super.removeNotify();↵ | |
2 | if (_listLis != null)↵ | 2 | if (_propsListener != null)↵ | |
3 | {↵ | 3 | {↵ | |
4 | _stylesList.removeListSelectionListener(_listLis);↵ | 4 | _s↵ | |
5 | _listLis↵ | 5 | ession.getProperties().removePropertyChangeListener(_propsListener);↵ | |
6 | = null;↵ | 6 | _propsListener = null;↵ | |
7 | } | 7 | } | |
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.1 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 10 |
Number of mapped statements | 2 |
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) | 24.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super.removeNotify(); |
| 1 | super.removeNotify(); | ||||||||||||||
2 | if (_listLis != null) |
| 2 | if (_propsListener != null) | ||||||||||||||
|
| 3 | _session.getProperties().removePropertyChangeListener(_propsListener); | |||||||||||||||
3 | _stylesList.removeListSelectionListener(_listLis); |
| | |||||||||||||||
|
| 4 | _propsListener = null; | |||||||||||||||
4 | _listLis = null; |
| |
Row | Violation |
---|---|
1 | Super method call super.removeNotify(); cannot be extracted from method |
2 | Super method call super.removeNotify(); cannot be extracted from method |
3 | Type net.sourceforge.squirrel_sql.plugins.syntax.SyntaxPreferencesPanel.MyPanel.StylesListSelectionListener of variable _listLis does not match with type java.beans.PropertyChangeListener of variable _propsListener |
4 | Unmatched statement _session.getProperties().removePropertyChangeListener(_propsListener); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
5 | Unmatched statement _stylesList.removeListSelectionListener(_listLis); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
6 | Unmatched statement _propsListener=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
7 | Unmatched statement _listLis=null; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |