synchronized (chars)
{
try
{
chars.wait();
}
catch (InterruptedException e)
{
}
}
try
{
getSession().closeSQLConnection();
}
catch (SQLException ex)
{
showError(ex);
}
Clone fragments detected by clone detection tool
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/parser/kernel/ParserThread.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/gui/session/SessionPanel.java
|
Method name: void waitChars()
|
|
Method name: void closeConnection()
|
Number of AST nodes: 3
|
|
Number of AST nodes: 2
|
|
1 | synchronized (chars)↵ | | |
|
2 | {↵ | | |
|
3 | try↵ | | 1 | try↵
|
4 | {↵ | | 2 | {↵
|
5 | chars.wait();↵ | | 3 | ↵
|
6 | }↵ | | |
|
7 | catch (Interrupted↵ | | 4 | getSession().closeSQLConnection();↵
|
| | | 5 | }↵
|
8 | Exception e)↵ | | 6 | catch (SQLException ex)↵
|
9 | {↵ | | 7 | {↵
|
10 | }↵ | | 8 | ↵
|
11 | ↵ | | 9 | showError(ex);↵
|
12 | } | | 10 | }
|
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |