if (!isNil(o, f)) { saveDataTypeSingle(o, f); continue LOOP; } break;
if (!entryFeatures.isEmpty()) { return false; } entryFeatures.add(entryFeature);
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLSaveImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/edit/command/AddCommand.java
Method name: boolean saveFeatures(EObject) Method name: boolean prepare()
Number of AST nodes: 4 Number of AST nodes: 3
1
if (!isNil(o, f))
1
if (!entryFeatures.isEmpty())
2
            {
2
              {
3
              saveDataTypeSingle(o, f);
3
                return false;
4
              continue LOOP;
4
              
5
            }
6
            break
5
}
7
;
6
              entryFeatures.add(entryFeature);
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.1
Clones locationClones are in different classes
Number of node comparisons8
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)1300.5
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    30
    if (!isNil(o, f))
    30
    if (!isNil(o, f))
    31
    if (!entryFeatures.isEmpty())
    Differences
    Expression1Expression2Difference
    isNilisEmptyMETHOD_INVOCATION_NAME_MISMATCH
    isNil(o,f)entryFeatures.isEmpty()ARGUMENT_NUMBER_MISMATCH
    entryFeaturesMISSING_METHOD_INVOCATION_EXPRESSION
    31
    if (!entryFeatures.isEmpty())
    31
    saveDataTypeSingle(o, f);
                                                            
                                      
    32
    return false;
    Preondition Violations
    Unmatched return false;
    32
    return false;
    32
    continue LOOP;
    32
    continue LOOP;
    Preondition Violations
    Unmatched continue LOOP;
                                        
                                                                            
    33
    entryFeatures.add(entryFeature);
    Preondition Violations
    Unmatched statement entryFeatures.add(entryFeature); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    33
    entryFeatures.add(entryFeature);
    33
    break;
    33
    break;
    Preondition Violations
    Unmatched break;
                        
    Precondition Violations (4)
    Row Violation
    1Unmatched return false;
    2Unmatched continue LOOP;
    3Unmatched statement entryFeatures.add(entryFeature); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    4Unmatched break;