if (localVar != null) { out.put2(cw.newUTF8("LocalVariableTable").index); out.put4(localVar.length + 2).put2(localVarCount); out.putByteArray(localVar.data, 0, localVar.length); }
if (lineNumber != null) { out.put2(cw.newUTF8("LineNumberTable").index); out.put4(lineNumber.length + 2).put2(lineNumberCount); out.putByteArray(lineNumber.data, 0, lineNumber.length); }
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/objectweb/asm/CodeWriter.java File path: /jEdit-4.2/src/org/objectweb/asm/CodeWriter.java
Method name: void put(ByteVector) Method name: void put(ByteVector)
Number of AST nodes: 4 Number of AST nodes: 4
1
if (localVar != null) {
1
if (lineNumber != null) {
2
        out.put2(cw.newUTF8("LocalVariableTable").index);
2
        out.put2(cw.newUTF8("LineNumberTable").index);
3
        out.put4(localVar.length + 2).put2(localVarCount);
3
        out.put4(lineNumber.length + 2).put2(lineNumberCount);
4
        out.putByteArray(localVar.data, 0, localVar.length);
4
        out.putByteArray(lineNumber.data, 0, lineNumber.length);
5
      }
5
      }
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.2
Clones locationClones are in the same method
Number of node comparisons17
  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)12.8
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    30
    if (localVar != null)
    30
    if (localVar != null)
    34
    if (lineNumber != null)
    Differences
    Expression1Expression2Difference
    localVarlineNumberVARIABLE_NAME_MISMATCH
    34
    if (lineNumber != null)
    31
    out.put2(cw.newUTF8("LocalVariableTable").index);
    31
    out.put2(cw.newUTF8("LocalVariableTable").index);
    35
    out.put2(cw.newUTF8("LineNumberTable").index);
    Differences
    Expression1Expression2Difference
    "LocalVariableTable""LineNumberTable"LITERAL_VALUE_MISMATCH
    35
    out.put2(cw.newUTF8("LineNumberTable").index);
    32
    out.put4(localVar.length + 2).put2(localVarCount);
    32
    out.put4(localVar.length + 2).put2(localVarCount);
    36
    out.put4(lineNumber.length + 2).put2(lineNumberCount);
    Differences
    Expression1Expression2Difference
    localVarCountlineNumberCountVARIABLE_NAME_MISMATCH
    localVarlineNumberVARIABLE_NAME_MISMATCH
    36
    out.put4(lineNumber.length + 2).put2(lineNumberCount);
    33
    out.putByteArray(localVar.data, 0, localVar.length);
    33
    out.putByteArray(localVar.data, 0, localVar.length);
    37
    out.putByteArray(lineNumber.data, 0, lineNumber.length);
    Differences
    Expression1Expression2Difference
    localVarlineNumberVARIABLE_NAME_MISMATCH
    localVarlineNumberVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression localVar.data cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression lineNumber.data cannot be parameterized, because it has dependencies to/from statements that will be extracted
    37
    out.putByteArray(lineNumber.data, 0, lineNumber.length);
    Precondition Violations (2)
    Row Violation
    1Expression localVar.data cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression lineNumber.data cannot be parameterized, because it has dependencies to/from statements that will be extracted