void testEnded() { if (bshInterpreter == null || !hasInitFile) { return; } try { bshInterpreter.evalNoLog("testEnded()"); // $NON-NLS-1$ } catch (JMeterException ignored) { log.debug(getClass().getName() + " : " + ignored.getLocalizedMessage()); // $NON-NLS-1$ } } public void testEnded(String host) { if (bshInterpreter == null || !hasInitFile) { return; } try { bshInterpreter.eval((new StringBuffer("testEnded(")) // $NON-NLS-1$ .append(host) .append(")") // $NON-NLS-1$ .toString()); // $NON-NLS-1$ } catch (JMeterException ignored) { log.debug(getClass().getName() + " : " + ignored.getLocalizedMessage()); // $NON-NLS-1$ } }
void testStarted() { if (bshInterpreter == null || !hasInitFile) { return; } try { bshInterpreter.evalNoLog("testStarted()"); // $NON-NLS-1$ } catch (JMeterException ignored) { log.debug(getClass().getName() + " : " + ignored.getLocalizedMessage()); // $NON-NLS-1$ } } public void testStarted(String host) { if (bshInterpreter == null || !hasInitFile) { return; } try { bshInterpreter.eval((new StringBuffer("testStarted(")) // $NON-NLS-1$ .append(host) .append(")") // $NON-NLS-1$ .toString()); // $NON-NLS-1$ } catch (JMeterException ignored) { log.debug(getClass().getName() + " : " + ignored.getLocalizedMessage()); // $NON-NLS-1$ } }
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/util/BeanShellTestElement.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void testEnded() {
1
void testStarted() {
2
        if (bshInterpreter == null || !hasInitFile) {
2
        if (bshInterpreter == null || !hasInitFile) {
3
            return;
3
            return;
4
        }
4
        }
5
		try {
5
		try {
6
			bshInterpreter.evalNoLog("testEnded()"); // $NON-NLS-1$
6
			bshInterpreter.evalNoLog("testStarted()"); // $NON-NLS-1$
7
		} catch (JMeterException ignored) {
7
		} catch (JMeterException ignored) {
8
            log.debug(getClass().getName() + " : " + ignored.getLocalizedMessage()); // $NON-NLS-1$
8
			log.debug(getClass().getName() + " : " + ignored.getLocalizedMessage()); // $NON-NLS-1$
9
		}		
9
		}		
10
	}
10
	}
11
	public void testEnded(String host) {
11
	public void testStarted(String host) {
12
        if (bshInterpreter == null || !hasInitFile) {
12
        if (bshInterpreter == null || !hasInitFile) {
13
            return;
13
            return;
14
        }
14
        }
15
		try {
15
		try {
16
			bshInterpreter.eval((new StringBuffer("testEnded(")) // $NON-NLS-1$
16
			bshInterpreter.eval((new StringBuffer("testStarted(")) // $NON-NLS-1$
17
					.append(host)
17
					.append(host)
18
					.append(")") // $NON-NLS-1$
18
					.append(")") // $NON-NLS-1$
19
					.toString()); // $NON-NLS-1$
19
					.toString()); // $NON-NLS-1$
20
		} catch (JMeterException ignored) {
20
		} catch (JMeterException ignored) {
21
            log.debug(getClass().getName() + " : " + ignored.getLocalizedMessage()); // $NON-NLS-1$
21
            log.debug(getClass().getName() + " : " + ignored.getLocalizedMessage()); // $NON-NLS-1$
22
		}		
22
		}		
23
	}
23
	}
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 location
Number of node comparisons0