File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/async/ReleaseFileUpdateCheckTask.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/UpdateControllerImpl.java | |||
Method name: String getDesiredChannel(IUpdateSettings, ChannelXmlBean)
|
Method name: String getDesiredChannel(IUpdateSettings)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | String desiredChannel = settings.getUpdateServerChannel().toLowerCase();↵ | 1 | String desiredChannel = settings.getUpdateServerChannel().toLowerCase();↵ | |
2 | String currentChannelName = _installedChannelBean.getName();↵ | 2 | String currentChannelName = _installedChannelBean.getName();↵ | |
3 | if (!currentChannelName.equals(desiredChannel))↵ | 3 | if (!currentChannelName.equals(desiredChannel))↵ | |
4 | {↵ | 4 | {↵ | |
5 | if (s_log.isInfoEnabled())↵ | 5 | if (s_log.isInfoEnabled())↵ | |
6 | {↵ | 6 | {↵ | |
7 | s_log.info("getDesiredChannel: User is switching distribution channel from "↵ | 7 | s_log.info("getDesiredChannel: User is switching distribution channel from "↵ | |
8 | + "installed channel (" + currentChannelName + ") to new channel (" + desiredChannel + ")");↵ | 8 | + "installed channel (" + currentChannelName + ") to new channel (" + desiredChannel + ")");↵ | |
9 | }↵ | 9 | }↵ | |
10 | }↵ | 10 | }↵ | |
11 | return desiredChannel; | 11 |
| |
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 | 14 |
Number of mapped statements | 6 |
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.6 |
Clone type | Type 1 |
ID | Statement | ID | Statement | |
---|---|---|---|---|
1 | String desiredChannel = settings.getUpdateServerChannel().toLowerCase(); | 1 | String desiredChannel = settings.getUpdateServerChannel().toLowerCase(); | |
2 | String currentChannelName = _installedChannelBean.getName(); | 2 | String currentChannelName = _installedChannelBean.getName(); | |
3 | if (!currentChannelName.equals(desiredChannel)) | 3 | if (!currentChannelName.equals(desiredChannel)) | |
4 | if (s_log.isInfoEnabled()) | 4 | if (s_log.isInfoEnabled()) | |
5 | s_log.info("getDesiredChannel: User is switching distribution channel from " + "installed channel (" + currentChannelName + ") to new channel (" + desiredChannel + ")"); | 5 | s_log.info("getDesiredChannel: User is switching distribution channel from " + "installed channel (" + currentChannelName + ") to new channel (" + desiredChannel + ")"); | |
6 | return desiredChannel; | 6 | return desiredChannel; |
Row | Violation |
---|---|
1 | The refactoring of the clones is infeasible, because classes net.sourceforge.squirrel_sql.client.update.async.ReleaseFileUpdateCheckTask and net.sourceforge.squirrel_sql.client.update.UpdateControllerImpl do not have a common superclass |