try
{
_runScript(view,path,in,ownNamespace);
}
catch(Throwable e)
{
Log.log(Log.ERROR,BeanShell.class,e);
handleException(view,path,e);
}
try
{
_runScript(view,path,in,namespace);
}
catch(Throwable e)
{
Log.log(Log.ERROR,BeanShell.class,e);
handleException(view,path,e);
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/jedit/BeanShell.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/BeanShell.java
|
Method name: void runScript(View, String, Reader, boolean)
|
|
Method name: void runScript(View, String, Reader, NameSpace)
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | try↵ | | 1 | try↵
|
2 | {↵ | | 2 | {↵
|
3 | _runScript(view,path,in,ownNamespace);↵ | | 3 | _runScript(view,path,in,namespace);↵
|
4 | }↵ | | 4 | }↵
|
5 | catch(Throwable e)↵ | | 5 | catch(Throwable e)↵
|
6 | {↵ | | 6 | {↵
|
7 | Log.log(Log.ERROR,BeanShell.class,e);↵ | | 7 | Log.log(Log.ERROR,BeanShell.class,e);↵
|
|
8 | handleException(view,path,e);↵ | | 8 | handleException(view,path,e);↵
|
9 | } | | 9 | }
|
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.4 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 4 |
-
{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.7 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | try | | 1 | try |
2 | _runScript(view, path, in, ownNamespace); | | 2 | _runScript(view, path, in, namespace); |
Precondition Violations (1)
Row |
Violation |
1 | Type boolean of variable ownNamespace does not match with type bsh.NameSpace of variable namespace |