this.adapterFactory = adapterFactory; this.text = text; this.image = image; this.parent = parent; this.children = new ItemProviderNotifyingArrayList<Object>(children);
this.url = url; this.key1 = key1; this.key2 = key2;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProvider.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/ui/provider/ExtendedImageRegistry.java
Method name: void ItemProvider(AdapterFactory, String, Object, Object, Collection) Method name: void URLImageDescriptor(URL, String, String)
Number of AST nodes: 5 Number of AST nodes: 3
1
this.adapterFactory = adapterFactory;
1
this.
2
    this.text = text;
3
    this.image = image;
4
    this.parent = parent;
5
    this.children = new ItemProviderNotifyingArrayList<Object>(children)
2
url = url;
3
    this.key1 = key1;
6
;
4
    this.key2 = key2;
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 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.url = url;
    1
    this.adapterFactory = adapterFactory;
                                                                                
    2
    this.text = text;
    2
    this.text = text;
    2
    this.key1 = key1;
    Differences
    Expression1Expression2Difference
    textkey1VARIABLE_NAME_MISMATCH
    textkey1VARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.text is a field being modified, and thus it cannot be parameterized
    Expression this.key1 is a field being modified, and thus it cannot be parameterized
    2
    this.key1 = key1;
                                        
    3
    this.key2 = key2;
    3
    this.image = image;
                                            
    4
    this.parent = parent;
                                                
    5
    this.children = new ItemProviderNotifyingArrayList<Object>(children);
                                                                                                                                                
    Precondition Violations (2)
    Row Violation
    1Expression this.text is a field being modified, and thus it cannot be parameterized
    2Expression this.key1 is a field being modified, and thus it cannot be parameterized