while (iter.hasNext()) { try { ((RemoteSampleListener) iter.next()).sampleOccurred(event); } catch (Exception ex) { log.error("", ex); } }
if (wait > 0) { try { Thread.sleep(wait); } catch (InterruptedException e1) { // ignore } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/threads/ThreadGroup.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/junit/stubs/TestSampler.java
Method name: void run() Method name: SampleResult sample(Entry)
Number of AST nodes: 3 Number of AST nodes: 3
1
while (iter.hasNext()) {
1
if (wait > 0) {
2
							try {
2
			try {
3
								((RemoteSampleListener) iter.next()).sampleOccurred(event);
3
				Thread.sleep(wait);
4
							} catch (Exception ex) {
4
			} catch (InterruptedException e1) {
5
								log.error("", ex);
5
				
6
							}
7
				
6
// ignore
7
			}
8
		}
8
		}
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