String s = "could not delete file: " + ftp.getReplyString(); if (skipFailedTransfers) { log(s, Project.MSG_WARN); skipped++; } else { throw new BuildException(s); }
String s = "could not remove directory: " + ftp.getReplyString(); if (skipFailedTransfers) { log(s, Project.MSG_WARN); skipped++; } else { throw new BuildException(s); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/FTP.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/net/FTP.java
Method name: void delFile(FTPClient, String) Method name: void rmDir(FTPClient, String)
Number of AST nodes: 5 Number of AST nodes: 5
1
String s = "could not delete file: " + ftp.getReplyString();
1
String s = "could not remove directory: " + ftp.getReplyString();
2
            if (skipFailedTransfers) {
2
            if (skipFailedTransfers) {
3
                log(s, Project.MSG_WARN);
3
                log(s, Project.MSG_WARN);
4
                skipped++;
4
                skipped++;
5
            } else {
5
            } else {
6
                throw new BuildException(s);
6
                throw new BuildException(s);
7
            }
7
            }
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.5
Clones locationClones are declared in the same class
Number of node comparisons18
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)9.7
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    4
    String s = "could not delete file: " + ftp.getReplyString();
    4
    String s = "could not delete file: " + ftp.getReplyString();
    4
    String s = "could not remove directory: " + ftp.getReplyString();
    Differences
    Expression1Expression2Difference
    "could not delete file: ""could not remove directory: "LITERAL_VALUE_MISMATCH
    4
    String s = "could not remove directory: " + ftp.getReplyString();
    5
    if (skipFailedTransfers)
    5
    if (skipFailedTransfers)
    6
    log(s, Project.MSG_WARN);
    6
    log(s, Project.MSG_WARN);
    7
    skipped++;
    7
    skipped++;
    else
    else
    8
    throw new BuildException(s);
    8
    throw new BuildException(s);
    Precondition Violations (0)
    Row Violation