if (isResetInterpreter()) { try { bshInterpreter.reset(); } catch (ClassNotFoundException e) { log.error("Cannot reset BeanShell: "+e.toString()); } }
if (context != null) { try { context.close(); } catch (NamingException ignored) { // ignore } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/util/BeanShellTestElement.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/JMSSampler.java
Method name: BeanShellInterpreter getBeanShellInterpreter() Method name: void threadStarted()
Number of AST nodes: 3 Number of AST nodes: 3
1
if (isResetInterpreter()) {
1
if (
2
            try {
3
                bshInterpreter.re
2
context != null) {
3
				try {
4
set();
4
					context.close();
5
            } catch (ClassNotFoundException e) {
6
                log.error("Cannot reset BeanShell: "+e.toString());
7
            }
8
        
5
				} catch (NamingException ignored) {
6
					// ignore
7
				}
9
}
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.0
Clones locationClones are in different classes having the same super class
Number of node comparisons0