if (s_log.isInfoEnabled()) { s_log.info("verifySize: expected size was -1. Skipping check for url: " + url.toString()); } return;
if (s_log.isInfoEnabled()) { s_log.info("File to be copied(" + from.getAbsolutePath() + ") has the same checksum(" + fromCheckSum + ") as the file to copy to (" + toFile.getAbsolutePath() + "). Skipping copy."); } return;
Clone fragments detected by clone detection tool
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;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.2
Clones locationClones are declared in the same class
Number of node comparisons6
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.9
    Clone typeType 2
    Mapped Statements
    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());
    3
    s_log.info("verifySize: expected size was -1. Skipping check for url: " + url.toString());
    Preondition Violations
    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
                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                
    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.");
    Preondition Violations
    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
    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;
    4
    return;
    15
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    15
    return;
    Precondition Violations (4)
    Row Violation
    1Unmatched 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
    2Unmatched 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
    3Conditional return;
    4Conditional return;