File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/UpdateUtilImpl.java | File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/update/UpdateUtilImpl.java | |||
Method name: void verifySize(URL, long, long)
|
Method name: void copyFile(FileWrapper, FileWrapper)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (s_log.isInfoEnabled())↵ | 1 | if (s_log.isInfoEnabled())↵ | |
2 | {↵ | 2 | {↵ | |
3 | s_log.info("verifySize: expected size was -1. Skipping check for url: " + url.toString()↵ | 3 | s_log.info("File to be copied(" + from.getAbsolutePath() + ") has the same checksum("↵ | |
4 | + fromCheckSum + ") as the file to copy to (" + toFile.getAbsolutePath()↵ | |||
4 | );↵ | 5 | + "). Skipping copy.");↵ | |
5 | }↵ | 6 | }↵ | |
6 | return; | 7 | return; | |
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 declared in the same class |
Number of node comparisons | 6 |
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||
---|---|---|---|---|---|---|---|---|---|---|
2 | if (s_log.isInfoEnabled()) | 13 | if (s_log.isInfoEnabled()) | |||||||
3 | s_log.info("verifySize: expected size was -1. Skipping check for url: " + url.toString()); |
| | |||||||
|
| 14 | s_log.info("File to be copied(" + from.getAbsolutePath() + ") has the same checksum(" + fromCheckSum + ") as the file to copy to (" + toFile.getAbsolutePath() + "). Skipping copy."); | |||||||
4 | return; |
| 15 | return; |
Row | Violation |
---|---|
1 | Unmatched statement s_log.info("verifySize: expected size was -1. Skipping check for url: " + url.toString()); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
2 | Unmatched statement s_log.info("File to be copied(" + from.getAbsolutePath() + ") has the same checksum("+ fromCheckSum+ ") as the file to copy to ("+ toFile.getAbsolutePath()+ "). Skipping copy."); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted |
3 | Conditional return; |
4 | Conditional return; |