badBlockHeader(); m_streamEnd = true; return;
maybeDragAndDrop = true; moveCaretPosition(dragStart,false); return;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/installer/CBZip2InputStream.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java
Method name: void initBlock() Method name: void mousePressed(MouseEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
badBlockHeader();
2
            m_streamEnd = true;
3
            
1
maybeDragAndDrop = true;
2
				moveCaretPosition(dragStart,false);
4
return;
3
				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 different classes
Number of node comparisons5
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    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
    badBlockHeader();
    11
    badBlockHeader();
    24
    moveCaretPosition(dragStart, false);
    Differences
    Expression1Expression2Difference
    badBlockHeadermoveCaretPositionMETHOD_INVOCATION_NAME_MISMATCH
    badBlockHeader()moveCaretPosition(dragStart,false)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression badBlockHeader() is a void method call, and thus it cannot be parameterized
    Expression moveCaretPosition(dragStart,false) is a void method call, and thus it cannot be parameterized
    Expression badBlockHeader() is a void method call, and thus it cannot be parameterized
    Expression moveCaretPosition(dragStart,false) is a void method call, and thus it cannot be parameterized
    24
    moveCaretPosition(dragStart, false);
    12
    m_streamEnd = true;
    12
    m_streamEnd = true;
    23
    maybeDragAndDrop = true;
    Differences
    Expression1Expression2Difference
    m_streamEndmaybeDragAndDropVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression m_streamEnd is a field being modified, and thus it cannot be parameterized
    Expression maybeDragAndDrop is a field being modified, and thus it cannot be parameterized
    23
    maybeDragAndDrop = true;
    13
    return;
    13
    return;
    25
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    25
    return;
    Precondition Violations (8)
    Row Violation
    1Expression badBlockHeader() is a void method call, and thus it cannot be parameterized
    2Expression moveCaretPosition(dragStart,false) is a void method call, and thus it cannot be parameterized
    3Expression badBlockHeader() is a void method call, and thus it cannot be parameterized
    4Expression moveCaretPosition(dragStart,false) is a void method call, and thus it cannot be parameterized
    5Expression m_streamEnd is a field being modified, and thus it cannot be parameterized
    6Expression maybeDragAndDrop is a field being modified, and thus it cannot be parameterized
    7Conditional return;
    8Conditional return;