case BYTE: buf.append('B'); return; case SHORT: buf.append('S'); return; case INT: buf.append('I'); return; case FLOAT: buf.append('F'); return; case LONG: buf.append('J'); return; case DOUBLE: buf.append('D'); return;
case VOID: buf.append('V'); return; case BOOLEAN: buf.append('Z'); return; case CHAR: buf.append('C'); return; case BYTE: buf.append('B'); return; case SHORT: buf.append('S'); return; case INT: buf.append('I'); return;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/objectweb/asm/Type.java File path: /jEdit-4.2/src/org/objectweb/asm/Type.java
Method name: void getDescriptor(StringBuffer) Method name: void getDescriptor(StringBuffer)
Number of AST nodes: 18 Number of AST nodes: 18
1
case BYTE:    buf.append('B'); return;
1
case VOID:    buf.append('V'); return;
2
      case SHORT:   buf.append('S'); return;
2
      case BOOLEAN: buf.append('Z'); return;
3
      case INT:     buf.append('I'); return;
3
      case CHAR:    buf.append('C'); return;
4
      case FLOAT:   buf.append('F'); return;
4
      case BYTE:    buf.append('B'); return;
5
      case LONG:    buf.append('J'); return;
5
      case SHORT:   buf.append('S'); return;
6
      case DOUBLE:  buf.append('D'); return;
6
      case INT:     buf.append('I'); return;
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 the same method
Number of node comparisons189
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements18
    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
    11
    case BYTE:
    11
    case BYTE:
    12
    buf.append('B');
    12
    buf.append('B');
    13
    return;
    13
    return;
    13
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    13
    return;
    14
    case SHORT:
    14
    case SHORT:
    15
    buf.append('S');
    15
    buf.append('S');
    16
    return;
    16
    return;
    16
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    16
    return;
    17
    case INT:
    17
    case INT:
    18
    buf.append('I');
    18
    buf.append('I');
    19
    return;
    19
    return;
    19
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    19
    return;
    20
    case FLOAT:
    20
    case FLOAT:
    8
    case CHAR:
    Differences
    Expression1Expression2Difference
    FLOATCHARVARIABLE_NAME_MISMATCH
    8
    case CHAR:
    21
    buf.append('F');
    21
    buf.append('F');
    9
    buf.append('C');
    Differences
    Expression1Expression2Difference
    'F''C'LITERAL_VALUE_MISMATCH
    9
    buf.append('C');
    22
    return;
    22
    return;
    10
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    10
    return;
    23
    case LONG:
    23
    case LONG:
    5
    case BOOLEAN:
    Differences
    Expression1Expression2Difference
    LONGBOOLEANVARIABLE_NAME_MISMATCH
    5
    case BOOLEAN:
    24
    buf.append('J');
    24
    buf.append('J');
    6
    buf.append('Z');
    Differences
    Expression1Expression2Difference
    'J''Z'LITERAL_VALUE_MISMATCH
    6
    buf.append('Z');
    25
    return;
    25
    return;
    7
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    7
    return;
    26
    case DOUBLE:
    26
    case DOUBLE:
    2
    case VOID:
    Differences
    Expression1Expression2Difference
    DOUBLEVOIDVARIABLE_NAME_MISMATCH
    2
    case VOID:
    27
    buf.append('D');
    27
    buf.append('D');
    3
    buf.append('V');
    Differences
    Expression1Expression2Difference
    'D''V'LITERAL_VALUE_MISMATCH
    3
    buf.append('V');
    28
    return;
    28
    return;
    4
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    4
    return;
    Precondition Violations (12)
    Row Violation
    1Conditional return;
    2Conditional return;
    3Conditional return;
    4Conditional return;
    5Conditional return;
    6Conditional return;
    7Conditional return;
    8Conditional return;
    9Conditional return;
    10Conditional return;
    11Conditional return;
    12Conditional return;