CallStack callstack = new CallStack( namespace ); BshMethod method = null;
CallStack callstack = new CallStack( namespace ); /* If equals() is not explicitly defined we must override the default implemented by the This object protocol for scripted object. To support XThis equals() must test for equality with the generated proxy object, not the scripted bsh This object; otherwise callers from outside in Java will not see a the proxy object as equal to itself. */ BshMethod equalsMethod = null;
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/JThis.java File path: /jEdit-4.2/src/bsh/XThis.java
Method name: void event(String, Object) Method name: Object invokeImpl(Object, Method, Object[])
Number of AST nodes: 2 Number of AST nodes: 2
1
CallStack callstack = new CallStack( namespace );
1
CallStack callstack = new CallStack( namespace );
2
			/*
3
				If equals() is not explicitly defined we must override the 
4
				default implemented by the This object protocol for scripted
5
				object.  To support XThis equals() must test for equality with 
6
				the generated proxy object, not the scripted bsh This object;
7
				otherwise callers from outside in Java will not see a the 
8
				proxy object as equal to itself.
9
			*/
2
		BshMethod method = null;
10
			BshMethod equalsMethod = null;
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 comparisons2
  1. {Non-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.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    CallStack callstack = new CallStack(namespace);
    2
    CallStack callstack = new CallStack(namespace);
    2
    BshMethod method = null;
    2
    BshMethod method = null;
    3
    BshMethod equalsMethod = null;
    Differences
    Expression1Expression2Difference
    methodequalsMethodVARIABLE_NAME_MISMATCH
    3
    BshMethod equalsMethod = null;
    Precondition Violations (1)
    Row Violation
    1Clone fragment #1 returns variables method, callstack , while Clone fragment #2 returns variables equalsMethod