try {
return getName( callstack.top() ).toLHS( callstack, interpreter );
} catch ( UtilEvalError e ) {
throw e.toEvalError( this, callstack );
}
try {
return
getName( callstack.top() ).toObject(
callstack, interpreter, forceClass );
} catch ( UtilEvalError e ) {
//e.printStackTrace();
throw e.toEvalError( this, callstack );
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/BSHAmbiguousName.java
|
|
File path: /jEdit-4.2/src/bsh/BSHAmbiguousName.java
|
Method name: LHS toLHS(CallStack, Interpreter)
|
|
Method name: Object toObject(CallStack, Interpreter, boolean)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | try {↵ | | 1 | try {↵
|
2 | return ↵ | | 2 | return ↵
|
3 | getName( callstack.top() ).toLHS( ↵ | | 3 | getName( callstack.top() ).toObject( ↵
|
4 | callstack, interpreter );↵ | | 4 | callstack, interpreter, forceClass );↵
|
5 | } catch ( UtilEvalError e ) {↵ | | 5 | } catch ( UtilEvalError e ) {↵
|
| | | 6 | //e.printStackTrace();↵
|
6 | throw e.toEvalError( this, callstack );↵ | | 7 | throw e.toEvalError( this, callstack );↵
|
7 | } | | 8 | }
|
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.2 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 4 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.5 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | try | | 1 | try |
| | | 2 | return getName(callstack.top()).toObject(callstack, interpreter, forceClass); |
2 | return getName(callstack.top()).toLHS(callstack, interpreter); | | | |
Precondition Violations (2)
Row |
Violation |
1 | Unmatched return getName(callstack.top()).toObject(callstack,interpreter,forceClass); |
2 | Unmatched return getName(callstack.top()).toLHS(callstack,interpreter); |