try
{
wait();
}
catch (InterruptedException e)
{
--waitingReaders; // Roll back state.
Log.log(Log.ERROR,this,e);
return;
}
progress++;
repaint();
// wait for it to be painted to ensure progress is updated
// continuously
try
{
wait();
}
catch(InterruptedException ie)
{
Log.log(Log.ERROR,this,ie);
}
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/org/gjt/sp/util/ReadWriteLock.java
|
|
File path: /jEdit-4.2/src/org/gjt/sp/jedit/gui/SplashScreen.java
|
Method name: void readLock()
|
|
Method name: void advance()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 4
|
|
| | | 1 | progress++;↵
|
| | | 2 | repaint();↵
|
|
| | | 3 | // wait for it to be painted to ensure progress is updated↵
|
| | | 4 | // continuously↵
|
1 | try↵ | | 5 | try↵
|
2 | {↵ | | 6 | {↵
|
3 | wait();↵ | | 7 | wait();↵
|
4 | }↵ | | 8 | }↵
|
5 | catch (InterruptedException e)↵ | | 9 | catch(InterruptedException ie)↵
|
6 | {↵ | | 10 | {↵
|
7 | --waitingReaders; // Roll back state.↵ | | 11 | ↵
|
8 | Log.log(Log.ERROR,this,e);↵ | | 12 | Log.log(Log.ERROR,this,ie);↵
|
9 | return;↵ | | 13 | ↵
|
10 | } | | 14 | }
|
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 |