if (!l.pushed) { // computes the true beginning stack size of this successor block l.beginStackSize = start + b.stackSize; // pushes this successor onto the stack l.pushed = true; l.next = stack; stack = l; }
if (!handler.pushed) { handler.beginStackSize = 1; handler.pushed = true; handler.next = blockStack; blockStack = handler; }
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 visitMaxs(int, int) Method name: void visitTryCatchBlock(Label, Label, Label, String)
Number of AST nodes: 5 Number of AST nodes: 5
1
if (!l.pushed) {
1
if (!handler.pushed) {
2
            // computes the true beginning stack size of this successor block
2
        
3
            l.beginStackSize = start + b.stackSize;
3
handler.beginStackSize = 1;
4
            // pushes this successor onto the stack
4
        
5
            l.pushed = true;
5
handler.pushed = true;
6
            l.next = stack;
6
        handler.next = blockStack;
7
            stack = l;
7
        blockStack = 
8
    
8
handler;
9
      }
9
      }
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 declared in the same class
Number of node comparisons26
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.6
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    14
    if (!l.pushed)
    14
    if (!l.pushed)
    7
    if (!handler.pushed)
    Differences
    Expression1Expression2Difference
    lhandlerVARIABLE_NAME_MISMATCH
    7
    if (!handler.pushed)
    15
    l.beginStackSize = start + b.stackSize;
    15
    l.beginStackSize = start + b.stackSize;
    8
    handler.beginStackSize = 1;
    Differences
    Expression1Expression2Difference
    lhandlerVARIABLE_NAME_MISMATCH
    start + b.stackSize1TYPE_COMPATIBLE_REPLACEMENT
    8
    handler.beginStackSize = 1;
    16
    l.pushed = true;
    16
    l.pushed = true;
    9
    handler.pushed = true;
    Differences
    Expression1Expression2Difference
    lhandlerVARIABLE_NAME_MISMATCH
    9
    handler.pushed = true;
    17
    l.next = stack;
    17
    l.next = stack;
    10
    handler.next = blockStack;
    Differences
    Expression1Expression2Difference
    lhandlerVARIABLE_NAME_MISMATCH
    stackblockStackVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression stack cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10
    handler.next = blockStack;
    18
    stack = l;
    18
    stack = l;
    11
    blockStack = handler;
    Differences
    Expression1Expression2Difference
    stackblockStackVARIABLE_NAME_MISMATCH
    lhandlerVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression blockStack is a field being modified, and thus it cannot be parameterized
    11
    blockStack = handler;
    Precondition Violations (3)
    Row Violation
    1Expression stack cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression blockStack is a field being modified, and thus it cannot be parameterized
    3Clone fragment #1 returns variables stack , while Clone fragment #2 returns variables