isOK = true; dispose(); return;
maybeDragAndDrop = true; moveCaretPosition(dragStart,false); return;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/browser/VFSFileChooserDialog.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/textarea/JEditTextArea.java
Method name: void ok() Method name: void mousePressed(MouseEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
isOK = true;
2
			dispo
1
maybeDragAndDrop = true;
3
se();
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
    7
    isOK = true;
    7
    isOK = true;
    23
    maybeDragAndDrop = true;
    Differences
    Expression1Expression2Difference
    isOKmaybeDragAndDropVARIABLE_NAME_MISMATCH
    23
    maybeDragAndDrop = true;
    8
    dispose();
    8
    dispose();
    24
    moveCaretPosition(dragStart, false);
    Differences
    Expression1Expression2Difference
    disposemoveCaretPositionMETHOD_INVOCATION_NAME_MISMATCH
    dispose()moveCaretPosition(dragStart,false)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression dispose() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression moveCaretPosition(dragStart,false) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression dispose() 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 dispose() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression moveCaretPosition(dragStart,false) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression dispose() 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);
    9
    return;
    9
    return;
    25
    return;
    Preondition Violations
    Conditional return;
    Conditional return;
    25
    return;
    Precondition Violations (11)
    Row Violation
    1Expression dispose() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression moveCaretPosition(dragStart,false) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression dispose() 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 dispose() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression moveCaretPosition(dragStart,false) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression dispose() is a void method call, and thus it cannot be parameterized
    8Expression moveCaretPosition(dragStart,false) is a void method call, and thus it cannot be parameterized
    9Conditional return;
    10Conditional return;
    11The refactoring of the clones is infeasible, because classes org.gjt.sp.jedit.browser.VFSFileChooserDialog and org.gjt.sp.jedit.textarea.JEditTextArea.MouseHandler do not have a common superclass