if (engine != null) { try { engine.runTest(); } catch (JMeterEngineException e) { JMeterUtils.reportErrorToUser(e.getMessage(),JMeterUtils.getResString("remote_error_starting")); // $NON-NLS-1$ } }
if (clazz != null && method != null){ // log.info("class " + clazz.getClass().getName() + // " method name is " + method); try { return clazz.getClass().getMethod(method,new Class[0]); } catch (NoSuchMethodException e) { log.warn(e.getMessage()); } }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/gui/action/RemoteStart.java File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
Method name: void doRemoteStart(String) Method name: Method getMethod(Object, String)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (engine != null) {
1
if (
2
			try {
3
				engine.runTest();
4
			} catch (JMeterEngineException e) {
5
				JMeterUtils.reportErrorToUser(e.getMessage(),JMeterUtils.getResString("remote_error_starting")); // $NON-NLS-1$
6
			}
7
		
2
clazz != null && method != null){
3
            // log.info("class " + clazz.getClass().getName() +
4
            //        " method name is " + method);
5
            try {
6
                return clazz.getClass().getMethod(method,new Class[0]);
7
            } catch (NoSuchMethodException e) {
8
                log.warn(e.getMessage());
9
            }
8
}
10
        }
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.2
Clones locationClones are in different classes
Number of node comparisons1