try
{
vfs._endVFSSession(session,view);
}
catch(IOException io)
{
Log.log(Log.ERROR,BeanShell.class,io);
GUIUtilities.error(view,"read-error",
new String[] { path, io.toString() });
}
try
{
vfs._endVFSSession(
session,
browser);
}
catch(IOException e)
{
Log.log(Log.ERROR,this,e);
VFSManager.error(browser,path,
"ioerror",
new String[]
{ e.toString() });
return;
}
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/browser/VFSFileChooserDialog.java
|
Method name: void _runScript(View, String, Reader, NameSpace)
|
|
Method name: void run()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | try↵ | | 1 | try↵
|
2 | {↵ | | 2 | {↵
|
3 | vfs._endVFSSession(↵ | | 3 | vfs._endVFSSession(↵
|
4 | session,view↵ | | 4 | session,↵
|
5 | );↵ | | 5 | browser);↵
|
6 | }↵ | | 6 | }↵
|
7 | catch(IOException io)↵ | | 7 | catch(IOException e)↵
|
8 | {↵ | | 8 | {↵
|
9 | Log.log(Log.ERROR,BeanShell.class,io);↵ | | 9 | Log.log(Log.ERROR,↵
|
10 | GUIUtilities.error(view,"read-↵ | | 10 | this,e);↵
|
| | | 11 | VFSManager.error(browser,path,↵
|
11 | error",↵ | | 12 | "ioerror",↵
|
12 | new String[] { path, io↵ | | 13 | new String[]↵
|
13 | .toString() });↵ | | 14 | { e.toString() });↵
|
14 | ↵ | | 15 | return;↵
|
15 | } | | 16 | }
|
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 | 0 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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 | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |