if (result == null) { result = new ArrayList<EStructuralFeature>(); } result.add(eStructuralFeature);
if (result == null) { result = new ArrayList<EStructuralFeature>(); } result.add(eStructuralFeature); break;
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicExtendedMetaData.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicExtendedMetaData.java
Method name: List getAttributes(EClass) Method name: List getElements(EClass)
Number of AST nodes: 3 Number of AST nodes: 4
1
if (result == null)
1
if (result == null)
2
          {
2
          {
3
            result = new ArrayList<EStructuralFeature>();
3
            result = new ArrayList<EStructuralFeature>();
4
          }
4
          }
5
          result.add(eStructuralFeature);
5
          result.add(eStructuralFeature);
6
          break;
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.2
Clones locationClones are declared in the same class
Number of node comparisons8
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)1.1
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    8
    if (result == null)
    9
    if (result == null)
    9
    result = new ArrayList<EStructuralFeature>();
    10
    result = new ArrayList<EStructuralFeature>();
    10
    result.add(eStructuralFeature);
    11
    result.add(eStructuralFeature);
                        
    12
    break;
    Preondition Violations
    Unmatched break;
    12
    break;
    Precondition Violations (1)
    Row Violation
    1Unmatched break;