File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/DriversListModel.java | File path: /sql12/plugins/oracle/src/net/sourceforge/squirrel_sql/plugins/oracle/dboutput/DBOutputPanel.java | |||
Method name: void setShowLoadedDriversOnly(boolean)
|
Method name: void setAutoRefresh(boolean)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (show != _showLoadedDriversOnly)↵ | 1 | if (↵ | |
2 | {↵ | |||
3 | _showLoadedDriversOnly = show;↵ | |||
4 | load();↵ | |||
5 | ↵ | 2 | enable != _autoRefresh)↵ | |
3 | {↵ | |||
4 | _autoRefresh = enable;↵ | |||
5 | resetTimer();↵ | |||
6 | } | 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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 9 |
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) | 57.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (show != _showLoadedDriversOnly) |
| 1 | if (enable != _autoRefresh) | |||||||||||||||
2 | _showLoadedDriversOnly = show; |
| 2 | _autoRefresh = enable; | |||||||||||||||
3 | load(); |
| 3 | resetTimer(); |
Row | Violation |
---|---|
1 | Expression _showLoadedDriversOnly is a field being modified, and thus it cannot be parameterized |
2 | Expression _autoRefresh is a field being modified, and thus it cannot be parameterized |
3 | Expression load() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression resetTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
5 | Expression load() is a void method call, and thus it cannot be parameterized |
6 | Expression resetTimer() is a void method call, and thus it cannot be parameterized |
7 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.client.gui.db.DriversListModel and net.sourceforge.squirrel_sql.plugins.oracle.dboutput.DBOutputPanel do not have a common superclass |