final StringBuilder buf = new StringBuilder(); buf.append("StructureType["); //$NON-NLS-1$ buf.append("name="+getName()); //$NON-NLS-1$ buf.append("namespace"+getNamespace()); //$NON-NLS-1$ buf.append(']'); return buf.toString();
final StringBuilder buf = new StringBuilder(); buf.append("StructureValue["); //$NON-NLS-1$ buf.append("name=" + getName()); //$NON-NLS-1$ buf.append(", namespace" + getNamespace()); //$NON-NLS-1$ buf.append(']'); return buf.toString();
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/context/base/StructureType.java File path: /columba-1.4-src/core/src/main/java/org/columba/core/context/base/StructureValue.java
Method name: String toString() Method name: String toString()
Number of AST nodes: 6 Number of AST nodes: 6
1
final StringBuilder buf = new StringBuilder();
1
final StringBuilder buf = new StringBuilder();
2
		buf.append("StructureType["); //$NON-NLS-1$
2
		buf.append("StructureValue["); //$NON-NLS-1$
3
		buf.append("name="+getName()); //$NON-NLS-1$
3
		buf.append("name=" + getName()); //$NON-NLS-1$
4
		buf.append("namespace"+getNamespace()); //$NON-NLS-1$
4
		buf.append(", namespace" + getNamespace()); //$NON-NLS-1$
5
		buf.append(']');
5
		buf.append(']');
6
		return buf.toString();
6
		return buf.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.0
Clones locationClones are in different classes
Number of node comparisons26
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements6
    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
    1
    final StringBuilder buf = new StringBuilder();
    1
    final StringBuilder buf = new StringBuilder();
    2
    buf.append("StructureType[");
    2
    buf.append("StructureType[");
    2
    buf.append("StructureValue[");
    Differences
    Expression1Expression2Difference
    "StructureType[""StructureValue["LITERAL_VALUE_MISMATCH
    2
    buf.append("StructureValue[");
    3
    buf.append("name=" + getName());
    3
    buf.append("name=" + getName());
    4
    buf.append("namespace" + getNamespace());
    4
    buf.append("namespace" + getNamespace());
    4
    buf.append(", namespace" + getNamespace());
    Differences
    Expression1Expression2Difference
    "namespace"", namespace"LITERAL_VALUE_MISMATCH
    4
    buf.append(", namespace" + getNamespace());
    5
    buf.append(']');
    5
    buf.append(']');
    6
    return buf.toString();
    6
    return buf.toString();
    Precondition Violations (1)
    Row Violation
    1The refactoring of the clones is infeasible, because classes org.columba.core.context.base.StructureType and org.columba.core.context.base.StructureValue do not have a common superclass