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;
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 2 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 2 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | CallStack callstack = new CallStack(namespace); | | 2 | CallStack callstack = new CallStack(namespace); |
2 | BshMethod method = null; | | 3 | BshMethod equalsMethod = null; |
Precondition Violations (1)
Row |
Violation |
1 | Clone fragment #1 returns variables method, callstack , while Clone fragment #2 returns variables equalsMethod |