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 unwrapException(Exception)
|
Method name: void unwrapException(Exception)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if(e instanceof InvocationTargetException)↵ | 1 | if(e instanceof TargetError)↵ | |
2 | {↵ | 2 | {↵ | |
3 | Throwable t = ((InvocationTargetException)e).getTargetException();↵ | 3 | Throwable t = ((TargetError)e).getTarget();↵ | |
4 | if(t instanceof Exception)↵ | 4 | if(t instanceof Exception)↵ | |
5 | throw (Exception)t;↵ | 5 | throw (Exception)t;↵ | |
6 | else if(t instanceof Error)↵ | 6 | else if(t instanceof Error)↵ | |
7 | throw (Error)t;↵ | 7 | throw (Error)t;↵ | |
8 | } | 8 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 17 |
Number of mapped statements | 6 |
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) | 2.9 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7 | if (e instanceof InvocationTargetException) |
| 1 | if (e instanceof TargetError) | |||||||||||||
8 | Throwable t = ((InvocationTargetException)e).getTargetException(); |
| 2 | Throwable t = ((TargetError)e).getTarget(); | |||||||||||||
9 | if (t instanceof Exception) | 3 | if (t instanceof Exception) | ||||||||||||||
10 | throw (Exception)t; | 4 | throw (Exception)t; | ||||||||||||||
11 | else if (t instanceof Error) | 5 | else if (t instanceof Error) | ||||||||||||||
12 | throw (Error)t; | 6 | throw (Error)t; |
Row | Violation |
---|