try {
con.rollback();
} catch (Exception e) {
e.printStackTrace();
}
try
{
chars.wait();
}
catch (InterruptedException e)
{
}
Clone fragments detected by clone detection tool
File path: /sql12/test/mockobjects/net/sourceforge/squirrel_sql/client/session/MockSession.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/parser/kernel/ParserThread.java
|
Method name: void rollback()
|
|
Method name: void waitChars()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | try {↵ | | 1 | try↵
|
2 | con.rollback();↵ | | |
|
3 | } catch (Exception e) {↵ | | |
|
4 | e.printStackTrace();↵ | | |
|
5 | ↵ | | |
|
| | | 2 | {↵
|
| | | 3 | chars.wait();↵
|
| | | 4 | }↵
|
| | | 5 | catch (InterruptedException e)↵
|
| | | 6 | {↵
|
6 | } | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |