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; 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; case FLOAT: buf.append('F'); return; case LONG: buf.append('J'); 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: 24 Number of AST nodes: 24
1
case VOID:    buf.append('V'); return;
1
case BOOLEAN: buf.append('Z'); return;
2
      case BOOLEAN: buf.append('Z'); return;
2
      case CHAR:    buf.append('C'); return;
3
      case CHAR:    buf.append('C'); return;
3
      case BYTE:    buf.append('B'); return;
4
      case BYTE:    buf.append('B'); return;
4
      case SHORT:   buf.append('S'); return;
5
      case SHORT:   buf.append('S'); return;
5
      case INT:     buf.append('I'); return;
6
      case INT:     buf.append('I'); return;
6
      case FLOAT:   buf.append('F'); return;
7
      case FLOAT:   buf.append('F'); return;
7
      case LONG:    buf.append('J'); return;
8
      case LONG:    buf.append('J'); return;
8
      case DOUBLE:  buf.append('D'); 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 comparisons324
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements24
    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
    5
    case BOOLEAN:
    5
    case BOOLEAN:
    6
    buf.append('Z');
    6
    buf.append('Z');
    7
    return;
    7
    return;
    7
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    7
    return;
    8
    case CHAR:
    8
    case CHAR:
    9
    buf.append('C');
    9
    buf.append('C');
    10
    return;
    10
    return;
    10
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    10
    return;
    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:
    21
    buf.append('F');
    21
    buf.append('F');
    22
    return;
    22
    return;
    22
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    22
    return;
    23
    case LONG:
    23
    case LONG:
    24
    buf.append('J');
    24
    buf.append('J');
    25
    return;
    25
    return;
    25
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    25
    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 (16)
    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;
    13Conditional return;
    14Conditional return;
    15Conditional return;
    16Conditional return;