this.value = value; this.owner = owner; this.feature = feature; this.index = index; this.adapterFactory = adapterFactory;
this.adapterFactory = adapterFactory; this.text = text; this.image = image; this.parent = parent; this.children = new ItemProviderNotifyingArrayList<Object>();
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/WrapperItemProvider.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProvider.java
Method name: void WrapperItemProvider(Object, Object, EStructuralFeature, int, AdapterFactory) Method name: void ItemProvider(AdapterFactory, String, Object, Object)
Number of AST nodes: 5 Number of AST nodes: 5
1
this.value = value;
1
this.
2
    this.owner = owner
2
adapterFactory = adapterFactory;
3
;
3
    this.text = text;
4
    this.feature = feature;
4
    this.
5
    this.index = index;
6
    this.adapterFactory = adapterFactory
5
image = image;
6
    this.parent = parent;
7
;
7
    this.children = new ItemProviderNotifyingArrayList<Object>();
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 comparisons18
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                        
    2
    this.text = text;
    1
    this.value = value;
    1
    this.value = value;
    3
    this.image = image;
    Differences
    Expression1Expression2Difference
    valueimageVARIABLE_NAME_MISMATCH
    valueimageVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.value is a field being modified, and thus it cannot be parameterized
    Expression this.image is a field being modified, and thus it cannot be parameterized
    3
    this.image = image;
    2
    this.owner = owner;
    2
    this.owner = owner;
    4
    this.parent = parent;
    Differences
    Expression1Expression2Difference
    ownerparentVARIABLE_NAME_MISMATCH
    ownerparentVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.owner is a field being modified, and thus it cannot be parameterized
    Expression this.parent is a field being modified, and thus it cannot be parameterized
    4
    this.parent = parent;
    3
    this.feature = feature;
                                                    
    4
    this.index = index;
                                            
    5
    this.adapterFactory = adapterFactory;
    1
    this.adapterFactory = adapterFactory;
                                                                                                                                
    5
    this.children = new ItemProviderNotifyingArrayList<Object>();
    Precondition Violations (4)
    Row Violation
    1Expression this.value is a field being modified, and thus it cannot be parameterized
    2Expression this.image is a field being modified, and thus it cannot be parameterized
    3Expression this.owner is a field being modified, and thus it cannot be parameterized
    4Expression this.parent is a field being modified, and thus it cannot be parameterized