File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/DumpSessionCommand.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/action/DumpSessionCommand.java | |||
Method name: void showErrorMessage(Throwable)
|
Method name: void showErrorMessage(String)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | if (_session != null) {↵ | 1 | if (_session != null) {↵ | |
2 | _session.showErrorMessage(th);↵ | 2 | _session.showErrorMessage(msg);↵ | |
3 | } else if (_msgHandler != null) {↵ | 3 | } else if (_msgHandler != null) {↵ | |
4 | _msgHandler.showErrorMessage(th, null);↵ | 4 | _msgHandler.showErrorMessage(msg);↵ | |
5 | } else {↵ | 5 | } else {↵ | |
6 | s_log.error("No IMessageHandler or ISession configured");↵ | 6 | s_log.error("No IMessageHandler or ISession configured");↵ | |
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.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 20 |
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.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (_session != null) | 1 | if (_session != null) | |||||||||||||||
2 | _session.showErrorMessage(th); |
| 2 | _session.showErrorMessage(msg); | ||||||||||||||
3 | else if (_msgHandler != null) | 3 | else if (_msgHandler != null) | |||||||||||||||
4 | _msgHandler.showErrorMessage(th, null); |
| 4 | _msgHandler.showErrorMessage(msg); | ||||||||||||||
else | else | |||||||||||||||||
5 | s_log.error("No IMessageHandler or ISession configured"); | 5 | s_log.error("No IMessageHandler or ISession configured"); |
Row | Violation |
---|---|
1 | Type java.lang.Throwable of variable th does not match with type java.lang.String of variable msg |
2 | Expression _msgHandler.showErrorMessage(th,null) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression _msgHandler.showErrorMessage(msg) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression _msgHandler.showErrorMessage(th,null) is a void method call, and thus it cannot be parameterized |
5 | Expression _msgHandler.showErrorMessage(msg) is a void method call, and thus it cannot be parameterized |