File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/AboutBoxDialog.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/AboutBoxDialog.java | |||
Method name: void windowActivated(WindowEvent)
|
Method name: void windowDeactivated(WindowEvent)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | String title = _tabPnl.getTitleAt(_tabPnl.getSelectedIndex());↵ | 1 | String title = _tabPnl.getTitleAt(_tabPnl.getSelectedIndex());↵ | |
2 | if (title.equals(s_stringMgr.getString("AboutBoxDialog.system")))↵ | 2 | if (title.equals(s_stringMgr.getString("AboutBoxDialog.system")))↵ | |
3 | {↵ | 3 | {↵ | |
4 | _systemPnl._memoryPnl.startTimer();↵ | 4 | _systemPnl._memoryPnl.stopTimer();↵ | |
5 | } | 5 |
| |
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.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 5 |
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 | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | String title = _tabPnl.getTitleAt(_tabPnl.getSelectedIndex()); | 1 | String title = _tabPnl.getTitleAt(_tabPnl.getSelectedIndex()); | |||||||||||||||
2 | if (title.equals(s_stringMgr.getString("AboutBoxDialog.system"))) |
| 2 | if (title.equals(s_stringMgr.getString("AboutBoxDialog.system"))) | ||||||||||||||
3 | _systemPnl._memoryPnl.startTimer(); |
| 3 | _systemPnl._memoryPnl.stopTimer(); |
Row | Violation |
---|---|
1 | Expression _systemPnl._memoryPnl.startTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression _systemPnl._memoryPnl.stopTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression _systemPnl._memoryPnl.startTimer() is a void method call, and thus it cannot be parameterized |
4 | Expression _systemPnl._memoryPnl.stopTimer() is a void method call, and thus it cannot be parameterized |
5 | Expression _systemPnl._memoryPnl.startTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression _systemPnl._memoryPnl.stopTimer() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression _systemPnl._memoryPnl.startTimer() is a void method call, and thus it cannot be parameterized |
8 | Expression _systemPnl._memoryPnl.stopTimer() is a void method call, and thus it cannot be parameterized |
9 | The refactoring of the clones is infeasible, because classes and do not have a common superclass |