SOSCheckin sosCheckin = new SOSCheckin(); sosCheckin.setProject(project); sosCheckin.setVssServerPath(VSS_SERVER_PATH); sosCheckin.setSosServerPath(SOS_SERVER_PATH); sosCheckin.setProjectPath(VSS_PROJECT_PATH); sosCheckin.setFile(SRC_FILE);
SOSCheckin sosCheckin = new SOSCheckin(); sosCheckin.setProject(project); sosCheckin.setVssServerPath(VSS_SERVER_PATH); sosCheckin.setSosServerPath(SOS_SERVER_PATH); sosCheckin.setProjectPath(DS_VSS_PROJECT_PATH); sosCheckin.setComment(SRC_COMMENT);
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/sos/SOSTest.java File path: /apache-ant-1.7.0/src/tests/junit/org/apache/tools/ant/taskdefs/optional/sos/SOSTest.java
Method name: void testCheckinFileFlags() Method name: void testCheckinProjectFlags()
Number of AST nodes: 6 Number of AST nodes: 6
1
SOSCheckin sosCheckin = new SOSCheckin();
1
SOSCheckin sosCheckin = new SOSCheckin();
2
        sosCheckin.setProject(project);
2
        sosCheckin.setProject(project);
3
        sosCheckin.setVssServerPath(VSS_SERVER_PATH);
3
        sosCheckin.setVssServerPath(VSS_SERVER_PATH);
4
        sosCheckin.setSosServerPath(SOS_SERVER_PATH);
4
        sosCheckin.setSosServerPath(SOS_SERVER_PATH);
5
        sosCheckin.setProjectPath(VSS_PROJECT_PATH);
5
        sosCheckin.setProjectPath(DS_VSS_PROJECT_PATH);
6
        sosCheckin.setFile(SRC_FILE);
6
        sosCheckin.setComment(SRC_COMMENT);
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 declared in the same class
Number of node comparisons36
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements6
    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
    2
    SOSCheckin sosCheckin = new SOSCheckin();
    2
    SOSCheckin sosCheckin = new SOSCheckin();
    3
    sosCheckin.setProject(project);
    3
    sosCheckin.setProject(project);
    4
    sosCheckin.setVssServerPath(VSS_SERVER_PATH);
    4
    sosCheckin.setVssServerPath(VSS_SERVER_PATH);
    5
    sosCheckin.setSosServerPath(SOS_SERVER_PATH);
    5
    sosCheckin.setSosServerPath(SOS_SERVER_PATH);
    6
    sosCheckin.setProjectPath(VSS_PROJECT_PATH);
    6
    sosCheckin.setProjectPath(VSS_PROJECT_PATH);
    6
    sosCheckin.setProjectPath(DS_VSS_PROJECT_PATH);
    Differences
    Expression1Expression2Difference
    VSS_PROJECT_PATHDS_VSS_PROJECT_PATHVARIABLE_NAME_MISMATCH
    6
    sosCheckin.setProjectPath(DS_VSS_PROJECT_PATH);
    7
    sosCheckin.setFile(SRC_FILE);
    7
    sosCheckin.setFile(SRC_FILE);
    7
    sosCheckin.setComment(SRC_COMMENT);
    Differences
    Expression1Expression2Difference
    SRC_FILESRC_COMMENTVARIABLE_NAME_MISMATCH
    setFilesetCommentMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression sosCheckin.setFile(SRC_FILE) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression sosCheckin.setComment(SRC_COMMENT) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression sosCheckin.setFile(SRC_FILE) is a void method call, and thus it cannot be parameterized
    Expression sosCheckin.setComment(SRC_COMMENT) is a void method call, and thus it cannot be parameterized
    7
    sosCheckin.setComment(SRC_COMMENT);
    Precondition Violations (4)
    Row Violation
    1Expression sosCheckin.setFile(SRC_FILE) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression sosCheckin.setComment(SRC_COMMENT) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression sosCheckin.setFile(SRC_FILE) is a void method call, and thus it cannot be parameterized
    4Expression sosCheckin.setComment(SRC_COMMENT) is a void method call, and thus it cannot be parameterized