this.workbench = workbench; this.selection = selection; init();
this.inputStream = inputStream; this.options = options; readSignature(); readVersion();
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/exporter/ui/EMFExportWizard.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/resource/impl/BinaryResourceImpl.java
Method name: void init(IWorkbench, IStructuredSelection) Method name: void EObjectInputStream(InputStream, Map)
Number of AST nodes: 3 Number of AST nodes: 4
1
this.workbench = workbench;
1
this.inputStream = inputStream;
2
    this.selection = selection;
2
      this.options = options;
3
    init
3
      readSignature();
4
();
4
      readVersion();
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 different classes
Number of node comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment3
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                                                    
    1
    this.inputStream = inputStream;
    1
    this.workbench = workbench;
                                                            
                                                    
    2
    this.options = options;
    2
    this.selection = selection;
                                                            
    3
    init();
    3
    init();
    3
    readSignature();
    Differences
    Expression1Expression2Difference
    initreadSignatureMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression readSignature() is a void method call, and thus it cannot be parameterized
    3
    readSignature();
                                      
    4
    readVersion();
    Preondition Violations
    Unmatched statement readVersion(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    4
    readVersion();
    Precondition Violations (3)
    Row Violation
    1Expression init() is a void method call, and thus it cannot be parameterized
    2Expression readSignature() is a void method call, and thus it cannot be parameterized
    3Unmatched statement readVersion(); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted