if (connection != null) { try { connection.close(); } catch (JMSException e) { LOGGER.info(e.getLocalizedMessage()); } }
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/protocol/jms/sampler/JMSSampler.java File path: /jakarta-jmeter-2.3.2/test/src/org/apache/jmeter/junit/stubs/TestSampler.java
Method name: void threadFinished() Method name: SampleResult sample(Entry)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (connection != null) {
1
if (wait > 0) {
2
			try {
2
			try {
3
				connection.close();
3
				Thread.sleep(wait);
4
			} catch (JMSException e) {
4
			} catch (InterruptedException e1) {
5
				LOGGER.info(e.getLocalizedMessage());
5
				// ignore
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 having the same super class
Number of node comparisons1