message = new ScpFromMessage(getVerbose(), session, file, getProject().resolveFile(toPath), fromSshUri.endsWith("*"));
message = new ScpFromMessageBySftp(getVerbose(), session, file, getProject().resolveFile(toPath), fromSshUri.endsWith("*"));
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ssh/Scp.java
Method name: void download(String, String) Method name: void download(String, String)
Number of AST nodes: 1 Number of AST nodes: 1
1
message =
1
message =
2
                    new ScpFromMessage(getVerbose(), session, file,
2
                    new ScpFromMessageBySftp(getVerbose(), session, file,
3
                                       getProject().resolveFile(toPath),
3
                                             getProject().resolveFile(toPath),
4
                                       fromSshUri.endsWith("*"));
4
                                             fromSshUri.endsWith("*"));
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.0
Clones locationClones are in the same method
Number of node comparisons1
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements1
    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.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    7
    message = new ScpFromMessage(getVerbose(), session, file, getProject().resolveFile(toPath), fromSshUri.endsWith("*"));
    7
    message = new ScpFromMessage(getVerbose(), session, file, getProject().resolveFile(toPath), fromSshUri.endsWith("*"));
    8
    message = new ScpFromMessageBySftp(getVerbose(), session, file, getProject().resolveFile(toPath), fromSshUri.endsWith("*"));
    Differences
    Expression1Expression2Difference
    org.apache.tools.ant.taskdefs.optional.ssh.ScpFromMessageorg.apache.tools.ant.taskdefs.optional.ssh.ScpFromMessageBySftpSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression new ScpFromMessage(getVerbose(),session,file,getProject().resolveFile(toPath),fromSshUri.endsWith("*")) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression new ScpFromMessageBySftp(getVerbose(),session,file,getProject().resolveFile(toPath),fromSshUri.endsWith("*")) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8
    message = new ScpFromMessageBySftp(getVerbose(), session, file, getProject().resolveFile(toPath), fromSshUri.endsWith("*"));
    Precondition Violations (2)
    Row Violation
    1Expression new ScpFromMessage(getVerbose(),session,file,getProject().resolveFile(toPath),fromSshUri.endsWith("*")) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression new ScpFromMessageBySftp(getVerbose(),session,file,getProject().resolveFile(toPath),fromSshUri.endsWith("*")) cannot be parameterized, because it has dependencies to/from statements that will be extracted