if(Debug.OFFSET_DEBUG && newGapLine != gapLine) Log.log(Log.DEBUG,this,method + ": update from " + newGapLine + " to " + gapLine + " width " + gapWidth);
if(Debug.OFFSET_DEBUG && gapLine != newGapLine) Log.log(Log.DEBUG,this,method + ": update from " + gapLine + " to " + newGapLine + " width " + gapWidth);
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/buffer/LineManager.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/buffer/LineManager.java
Method name: void moveGap(int, int, String) Method name: void moveGap(int, int, String)
Number of AST nodes: 2 Number of AST nodes: 2
1
if(Debug.OFFSET_DEBUG && newGapLine != gapLine)
1
if(Debug.OFFSET_DEBUG && gapLine != newGapLine)
2
					Log.log(Log.DEBUG,this,method + ": update from " + newGapLine + " to " + gapLine + " width " + gapWidth);
2
					Log.log(Log.DEBUG,this,method + ": update from " + gapLine + " to " + newGapLine + " width " + gapWidth);
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 comparisons5
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements2
    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.9
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    12
    if (Debug.OFFSET_DEBUG && newGapLine != gapLine)
    12
    if (Debug.OFFSET_DEBUG && newGapLine != gapLine)
    18
    if (Debug.OFFSET_DEBUG && gapLine != newGapLine)
    Differences
    Expression1Expression2Difference
    newGapLinegapLineVARIABLE_NAME_MISMATCH
    gapLinenewGapLineVARIABLE_NAME_MISMATCH
    18
    if (Debug.OFFSET_DEBUG && gapLine != newGapLine)
    13
    Log.log(Log.DEBUG, this, method + ": update from " + newGapLine + " to " + gapLine + " width " + gapWidth);
    13
    Log.log(Log.DEBUG, this, method + ": update from " + newGapLine + " to " + gapLine + " width " + gapWidth);
    19
    Log.log(Log.DEBUG, this, method + ": update from " + gapLine + " to " + newGapLine + " width " + gapWidth);
    Differences
    Expression1Expression2Difference
    newGapLinegapLineVARIABLE_NAME_MISMATCH
    gapLinenewGapLineVARIABLE_NAME_MISMATCH
    19
    Log.log(Log.DEBUG, this, method + ": update from " + gapLine + " to " + newGapLine + " width " + gapWidth);
    Precondition Violations (0)
    Row Violation