synchronized (chars)
{
try
{
chars.wait();
}
catch (InterruptedException e)
{
}
}
try {
connection.commit();
} catch (SQLException e) {
log.error("Failed to commit connection - "+connection, e);
}
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/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/CopyExecutor.java
|
Method name: void waitChars()
|
|
Method name: void commitConnection(ISQLConnection)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 2
|
|
1 | synchronized (chars)↵ | | |
|
2 | {↵ | | |
|
3 | try↵ | | |
|
4 | {↵ | | |
|
5 | chars.wait();↵ | | |
|
6 | }↵ | | |
|
7 | catch (InterruptedExcep↵ | | 1 | try {↵
|
| | | 2 | connection.commit();↵
|
| | | 3 | } catch (SQLException e) {↵
|
8 | tion e)↵ | | 4 | log.error("Failed to commit connection - "+connection, e)↵
|
9 | {↵ | | |
|
10 | }↵ | | |
|
11 | ↵ | | 5 | ;↵
|
12 | } | | 6 | }
|
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 |