commandLine.createArgument().setValue(getRecursive()); // -W commandLine.createArgument().setValue(getWritable()); // -Y commandLine.createArgument().setValue(getLogin()); // -C commandLine.createArgument().setValue(getComment());
commandLine.createArgument().setValue(getRecursive()); // -B / -D / -F- commandLine.createArgument().setValue(getStyle()); // -Y commandLine.createArgument().setValue(getLogin()); // -O commandLine.createArgument().setValue(getOutput());
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/vss/MSVSSCHECKIN.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/vss/MSVSSHISTORY.java
Method name: Commandline buildCmdLine() Method name: Commandline buildCmdLine()
Number of AST nodes: 4 Number of AST nodes: 4
1
commandLine.createArgument().setValue(getRecursive());
1
commandLine.createArgument().setValue(getRecursive());
2
        // -W
2
        // -B / -D / -F-
3
        commandLine.createArgument().setValue(getWritable());
3
        commandLine.createArgument().setValue(getStyle());
4
        // -Y
4
        // -Y
5
        commandLine.createArgument().setValue(getLogin());
5
        commandLine.createArgument().setValue(getLogin());
6
        // -C
6
        // -O
7
        commandLine.createArgument().setValue(getComment());
7
        commandLine.createArgument().setValue(getOutput());
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 different classes having the same super class
Number of node comparisons16
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    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
    10
    commandLine.createArgument().setValue(getRecursive());
    11
    commandLine.createArgument().setValue(getRecursive());
    11
    commandLine.createArgument().setValue(getWritable());
    11
    commandLine.createArgument().setValue(getWritable());
    12
    commandLine.createArgument().setValue(getStyle());
    Differences
    Expression1Expression2Difference
    getWritablegetStyleMETHOD_INVOCATION_NAME_MISMATCH
    12
    commandLine.createArgument().setValue(getStyle());
    12
    commandLine.createArgument().setValue(getLogin());
    13
    commandLine.createArgument().setValue(getLogin());
    13
    commandLine.createArgument().setValue(getComment());
    13
    commandLine.createArgument().setValue(getComment());
    14
    commandLine.createArgument().setValue(getOutput());
    Differences
    Expression1Expression2Difference
    getCommentgetOutputMETHOD_INVOCATION_NAME_MISMATCH
    14
    commandLine.createArgument().setValue(getOutput());
    Precondition Violations (0)
    Row Violation