String name = helper.getQName(f); doc.startAttribute(name); doc.addAttributeContent(stringValues.toString()); doc.endAttribute();
String name = helper.getQName(f); doc.startAttribute(name); doc.addAttributeContent(buffer.toString()); doc.endAttribute();
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/ecore/xmi/impl/XMLSaveImpl.java
Method name: void saveDataTypeAttributeMany(EObject, EStructuralFeature) Method name: void saveEObjectSingle(EObject, EStructuralFeature)
Number of AST nodes: 4 Number of AST nodes: 4
1
String name = helper.getQName(f);
1
String name = helper.getQName(f);
2
        doc.startAttribute(name);
2
          doc.startAttribute(name);
3
        doc.addAttributeContent(stringValues.toString());
3
          doc.addAttributeContent(buffer.toString());
4
        doc.endAttribute();
4
          doc.endAttribute();
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.0
Clones locationClones are declared in the same class
Number of node comparisons16
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements4
    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.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    18
    String name = helper.getQName(f);
    15
    String name = helper.getQName(f);
    19
    doc.startAttribute(name);
    16
    doc.startAttribute(name);
    20
    doc.addAttributeContent(stringValues.toString());
    20
    doc.addAttributeContent(stringValues.toString());
    17
    doc.addAttributeContent(buffer.toString());
    Differences
    Expression1Expression2Difference
    stringValuesbufferVARIABLE_NAME_MISMATCH
    17
    doc.addAttributeContent(buffer.toString());
    21
    doc.endAttribute();
    18
    doc.endAttribute();
    Precondition Violations (0)
    Row Violation