while (this.SUBSCRIBER.count(0) < this.loop) { try { Thread.sleep(0, 50); } catch (Exception e) { log.info(e.getMessage()); } }
while (running && allThreads.size() > 0) { try { Thread.sleep(1000); } catch (InterruptedException e) { } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/SubscriberSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/engine/StandardJMeterEngine.java
Method name: SampleResult sampleWithReceive() Method name: void run()
Number of AST nodes: 3 Number of AST nodes: 3
1
while (this.SUBSCRIBER.count(0) &lt; this.loop) {
1
while (running && allThreads.size() &gt; 0) {
2
			try {
2
					try {
3
				Thread.sleep(0, 50);
3
						Thread.sleep(1000);
4
			} catch (Exception e) {
4
					} catch (InterruptedException e) {
5
				log.info(e.getMessage());
5
				
6
			}
6
	}
7
		}
7
				}
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