if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (data: "); result.append(data); result.append(", target: "); result.append(target); result.append(')'); return result.toString();
if (eIsProxy()) return super.toString(); StringBuffer result = new StringBuffer(super.toString()); result.append(" (source: "); result.append(source); result.append(')'); return result.toString();
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/impl/ProcessingInstructionImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EAnnotationImpl.java
Method name: String toString() Method name: String toString()
Number of AST nodes: 9 Number of AST nodes: 7
1
if (eIsProxy()) return super.toString();
1
if (eIsProxy()) return super.toString();
2
    StringBuffer result = new StringBuffer(super.toString());
2
    StringBuffer result = new StringBuffer(super.toString());
3
    result.append(" (data: ");
3
    result.append(" (
4
    result.append(data);
5
    result.append(", target: ");
4
source: ");
6
    result.append(target);
5
    result.append(source);
7
    result.append(')');
6
    result.append(')');
8
    return result.toString();
7
    return result.toString();
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 having the same super class
Number of node comparisons31
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.7
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    if (eIsProxy())
    1
    if (eIsProxy())
    2
    return super.toString();
    2
    return super.toString();
    3
    StringBuffer result = new StringBuffer(super.toString());
    3
    StringBuffer result = new StringBuffer(super.toString());
    4
    result.append(" (data: ");
                                                              
    5
    result.append(data);
    5
    result.append(data);
    Preondition Violations
    Unmatched statement result.append(data); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                  
    6
    result.append(", target: ");
    6
    result.append(", target: ");
    4
    result.append(" (source: ");
    Differences
    Expression1Expression2Difference
    ", target: "" (source: "LITERAL_VALUE_MISMATCH
    4
    result.append(" (source: ");
    7
    result.append(target);
    7
    result.append(target);
    5
    result.append(source);
    Differences
    Expression1Expression2Difference
    targetsourceVARIABLE_NAME_MISMATCH
    5
    result.append(source);
    8
    result.append(')');
    6
    result.append(')');
    9
    return result.toString();
    7
    return result.toString();
    Precondition Violations (2)
    Row Violation
    1Unmatched statement result.append(data); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    2Clone fragment #1 returns variables result , while Clone fragment #2 returns variables