this.domain = domain; this.target = target; this.location = location; this.operations = operations; this.operation = operation; this.source = new ArrayList<Object>(source);
this.owner = owner; this.feature = feature; this.collection = collection; this.index = NO_INDEX;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/dnd/EditingDomainViewerDropAdapter.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/CommandParameter.java
Method name: void DragAndDropCommandInformation(EditingDomain, Object, float, int, int, Collection) Method name: void CommandParameter(Object, Object, Collection)
Number of AST nodes: 6 Number of AST nodes: 4
1
this.domain = domain;
1
this.owner = owner;
2
      this.target = target;
2
    this.feature = feature;
3
      this.location = location;
3
    this.
4
      this.operations = operations;
4
collection = collection;
5
      this.operation = operation;
5
    this.
6
      this.source = new ArrayList<Object>(source);
6
index = NO_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 different classes
Number of node comparisons17
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment4
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                            
    1
    this.owner = owner;
    1
    this.domain = domain;
                                                
    2
    this.target = target;
    2
    this.target = target;
    2
    this.feature = feature;
    Differences
    Expression1Expression2Difference
    targetfeatureVARIABLE_NAME_MISMATCH
    targetfeatureVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.target is a field being modified, and thus it cannot be parameterized
    Expression this.feature is a field being modified, and thus it cannot be parameterized
    2
    this.feature = feature;
                                                                
    3
    this.collection = collection;
    3
    this.location = location;
                                                        
    4
    this.operations = operations;
    4
    this.operations = operations;
    4
    this.index = NO_INDEX;
    Differences
    Expression1Expression2Difference
    operationsindexVARIABLE_NAME_MISMATCH
    operationsNO_INDEXVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.operations is a field being modified, and thus it cannot be parameterized
    Expression this.index is a field being modified, and thus it cannot be parameterized
    4
    this.index = NO_INDEX;
    5
    this.operation = operation;
                                                            
    6
    this.source = new ArrayList<Object>(source);
                                                                                              
    Precondition Violations (4)
    Row Violation
    1Expression this.target is a field being modified, and thus it cannot be parameterized
    2Expression this.feature is a field being modified, and thus it cannot be parameterized
    3Expression this.operations is a field being modified, and thus it cannot be parameterized
    4Expression this.index is a field being modified, and thus it cannot be parameterized