try { wait(); } catch (InterruptedException e) { --waitingWriters; 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 writeLock() 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
				--waitingWriters;
11
			
8
				Log.log(Log.ERROR,this,e);
12
Log.log(Log.ERROR,this,ie);
9
				return;
13
		
10
			}
14
}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are in different classes
Number of node comparisons1