if (factory != null) { try { return qfactory.createQueueConnection(); } catch (JMSException e) { log.error(e.getMessage()); } }
if (initialDelay > 0) { try { Thread.sleep(initialDelay); } catch (InterruptedException e) { } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/client/ConnectionFactory.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/threads/JMeterThread.java
Method name: QueueConnection getQueueConnection(Context, String) Method name: void rampUpDelay()
Number of AST nodes: 3 Number of AST nodes: 3
1
if (factory != null) {
1
if (
2
			try {
3
				return qfactory.createQueueConnection(
2
initialDelay > 0) {
3
			try {
4
);
4
				Thread.sleep(initialDelay);
5
			} catch (JMSException e) {
5
			} catch (InterruptedException e) {
6
				log.error(e.getMessage());
6
			
7
			}
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