synchronized (_callback)
{
s_log.debug("Reusing existing thread");
_callback.notify();
}
synchronized(this)
{
_pendingString = sqlText;
this.notify();
}
Clone fragments detected by clone detection tool
File path: /sql12/fw/src/net/sourceforge/squirrel_sql/fw/util/TaskThreadPool.java
|
|
File path: /sql12/app/src/net/sourceforge/squirrel_sql/client/session/parser/kernel/ParserThread.java
|
Method name: void addTask(Runnable)
|
|
Method name: void notifyParser(String)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | synchronized (_callback)↵ | | 1 | synchronized(this)↵
|
2 | {↵ | | 2 | {↵
|
3 | s_log.debug("Reusing existing thread");↵ | | 3 | ↵
|
4 | _callback↵ | | 4 | _pendingString = sqlText;↵
|
5 | .notify();↵ | | 5 | this.notify();↵
|
6 | } | | 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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |