setCurrentBindings(bindings); invokeAction((String)o); return true;
setCurrentBindings(bindings); invokeAction((EditAction)o); return true;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DefaultInputHandler.java File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/DefaultInputHandler.java
Method name: boolean handleKey(KeyEventTranslator.Key) Method name: boolean handleKey(KeyEventTranslator.Key)
Number of AST nodes: 3 Number of AST nodes: 3
1
setCurrentBindings(bindings);
1
setCurrentBindings(bindings);
2
			invokeAction((String)o);
2
			invokeAction((EditAction)o);
3
			return true;
3
			return true;
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 the same method
Number of node comparisons4
  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
    49
    setCurrentBindings(bindings);
    53
    setCurrentBindings(bindings);
    50
    invokeAction((String)o);
    50
    invokeAction((String)o);
    54
    invokeAction((EditAction)o);
    Differences
    Expression1Expression2Difference
    java.lang.Stringorg.gjt.sp.jedit.EditActionVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type java.lang.String of variable (String)o does not match with type org.gjt.sp.jedit.EditAction of variable (EditAction)o
    • Make classes java.lang.String and org.gjt.sp.jedit.EditAction extend a common superclass
    54
    invokeAction((EditAction)o);
    51
    return true;
    51
    return true;
    55
    return true;
    Preondition Violations
    Conditional return true;
    Conditional return true;
    55
    return true;
    Precondition Violations (3)
    Row Violation
    1Type java.lang.String of variable (String)o does not match with type org.gjt.sp.jedit.EditAction of variable (EditAction)o
    2Conditional return true;
    3Conditional return true;