editProjectLocationPath = new Path(new File(arguments[++index]).getAbsolutePath()); editFragmentPath = new Path(arguments[++index]);
testsProjectLocationPath = new Path(new File(arguments[++index]).getAbsolutePath()); testsFragmentPath = new Path(arguments[++index]);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/importer/ModelImporterApplication.java File path: /emf-2.4.1/src/org/eclipse/emf/importer/ModelImporterApplication.java
Method name: int processArgument(String[], int) Method name: int processArgument(String[], int)
Number of AST nodes: 2 Number of AST nodes: 2
1
editProjectLocationPath = new Path(new File(arguments[++index]).getAbsolutePath());
1
testsProjectLocationPath = new Path(new File(arguments[++index]).getAbsolutePath());
2
      editFragmentPath = new Path(arguments[++index]);
2
      testsFragmentPath = new Path(arguments[++index]);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons3
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    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
    6
    editProjectLocationPath = new Path(new File(arguments[++index]).getAbsolutePath());
    6
    editProjectLocationPath = new Path(new File(arguments[++index]).getAbsolutePath());
    12
    testsProjectLocationPath = new Path(new File(arguments[++index]).getAbsolutePath());
    Differences
    Expression1Expression2Difference
    editProjectLocationPathtestsProjectLocationPathVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression editProjectLocationPath is a field being modified, and thus it cannot be parameterized
    Expression testsProjectLocationPath is a field being modified, and thus it cannot be parameterized
    12
    testsProjectLocationPath = new Path(new File(arguments[++index]).getAbsolutePath());
    7
    editFragmentPath = new Path(arguments[++index]);
    7
    editFragmentPath = new Path(arguments[++index]);
    13
    testsFragmentPath = new Path(arguments[++index]);
    Differences
    Expression1Expression2Difference
    editFragmentPathtestsFragmentPathVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression editFragmentPath is a field being modified, and thus it cannot be parameterized
    Expression testsFragmentPath is a field being modified, and thus it cannot be parameterized
    13
    testsFragmentPath = new Path(arguments[++index]);
    Precondition Violations (4)
    Row Violation
    1Expression editProjectLocationPath is a field being modified, and thus it cannot be parameterized
    2Expression testsProjectLocationPath is a field being modified, and thus it cannot be parameterized
    3Expression editFragmentPath is a field being modified, and thus it cannot be parameterized
    4Expression testsFragmentPath is a field being modified, and thus it cannot be parameterized