try { // Add variables for access to context and variables bshInterpreter.set("ctx", jmctx);//$NON-NLS-1$ bshInterpreter.set("vars", vars);//$NON-NLS-1$ bshInterpreter.set("prev", prev);//$NON-NLS-1$ bshInterpreter.set("data", prev.getResponseData());//$NON-NLS-1$ processFileOrScript(bshInterpreter); } catch (JMeterException e) { log.warn("Problem in BeanShell script "+e);
try { // Add variables for access to context and variables bshInterpreter.set("ctx", jmctx);//$NON-NLS-1$ bshInterpreter.set("vars", vars);//$NON-NLS-1$ bshInterpreter.set("sampler", sam);//$NON-NLS-1$ bshInterpreter.set("prev", prev);//$NON-NLS-1$ processFileOrScript(bshInterpreter); } catch (JMeterException e) { log.warn("Problem in BeanShell script "+e);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/BeanShellPostProcessor.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/modifiers/BeanShellPreProcessor.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
try {
1
try {
2
            // Add variables for access to context and variables
2
            // Add variables for access to context and variables
3
            bshInterpreter.set("ctx", jmctx);//$NON-NLS-1$
3
            bshInterpreter.set("ctx", jmctx);//$NON-NLS-1$
4
            bshInterpreter.set("vars", vars);//$NON-NLS-1$
4
            bshInterpreter.set("vars", vars);//$NON-NLS-1$
5
            bshInterpreter.set("prev", prev);//$NON-NLS-1$
5
            bshInterpreter.set("sampler", sam);//$NON-NLS-1$
6
            bshInterpreter.set("data", prev.getResponseData());//$NON-NLS-1$
6
            bshInterpreter.set("prev", prev);//$NON-NLS-1$
7
            
7
            processFileOrScript(bshInterpreter);
8
            processFileOrScript(bshInterpreter);
8
        } catch (JMeterException e) {
9
        } catch (JMeterException e) {
9
            log.warn("Problem in BeanShell script "+e);
10
            log.warn("Problem in BeanShell script "+e);
10
        
11
        
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