if (eAdapters == null) { eAdapters = new EAdapterList<Adapter>(this); } return eAdapters;
if (eAdapters == null) { eAdapters = new EAdapterList<Adapter>(this); } return eAdapters;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/common/notify/impl/NotifierImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EObjectImpl.java
Method name: EList eAdapters() Method name: EList eAdapters()
Number of AST nodes: 3 Number of AST nodes: 3
1
if (eAdapters == null)
1
if (eAdapters == null)
2
    {
2
    {
3
      eAdapters =  new EAdapterList<Adapter>(this);
3
      eAdapters =  new EAdapterList<Adapter>(this);
4
    }
4
    }
5
    return eAdapters;
5
    return eAdapters;
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.1
Clones locationClones are in different classes having the same super class
Number of node comparisons5
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements3
    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.4
    Clone typeType 1
    Mapped Statements
    ID Statement ID Statement
    1
    if (eAdapters == null)
    1
    if (eAdapters == null)
    2
    eAdapters = new EAdapterList<Adapter>(this);
    2
    eAdapters = new EAdapterList<Adapter>(this);
    3
    return eAdapters;
    3
    return eAdapters;
    Precondition Violations (0)
    Row Violation