URI newURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
URI platformURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java File path: /emf-2.4.1/src/org/eclipse/emf/importer/ModelImporter.java
Method name: void doSaveAs() Method name: URI makeRelative(URI, URI)
Number of AST nodes: 1 Number of AST nodes: 1
1
URI newURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
1
URI platformURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
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
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
    12
    URI newURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
    12
    URI newURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
    4
    URI platformURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
    Differences
    Expression1Expression2Difference
    newURIplatformURIVARIABLE_NAME_MISMATCH
    4
    URI platformURI = URI.createPlatformResourceURI(file.getFullPath().toString(), true);
    Precondition Violations (0)
    Row Violation