String s = "could not put file: " + ftp.getReplyString(); if (skipFailedTransfers) { log(s, Project.MSG_WARN); skipped++; } else { throw new BuildException(s); }
String s = "could not get file: " + 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 sendFile(FTPClient, String, String) Method name: void getFile(FTPClient, String, String)
Number of AST nodes: 5 Number of AST nodes: 5
1
String s = "could not put file: " + ftp.getReplyString();
1
String s = "could not get file: " + 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.2
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)0.9
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    13
    String s = "could not put file: " + ftp.getReplyString();
    13
    String s = "could not put file: " + ftp.getReplyString();
    14
    String s = "could not get file: " + ftp.getReplyString();
    Differences
    Expression1Expression2Difference
    "could not put file: ""could not get file: "LITERAL_VALUE_MISMATCH
    14
    String s = "could not get file: " + ftp.getReplyString();
    14
    if (skipFailedTransfers)
    15
    if (skipFailedTransfers)
    15
    log(s, Project.MSG_WARN);
    16
    log(s, Project.MSG_WARN);
    16
    skipped++;
    17
    skipped++;
    else
    else
    17
    throw new BuildException(s);
    18
    throw new BuildException(s);
    Precondition Violations (0)
    Row Violation