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);
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);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/modifiers/BeanShellPreProcessor.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/BeanShellPostProcessor.java
Method name: void process() Method name: void process()
Number of AST nodes: 5 Number of AST nodes: 5
1
bshInterpreter.set("ctx", jmctx);//$NON-NLS-1$
1
bshInterpreter.set("ctx", jmctx);//$NON-NLS-1$
2
            bshInterpreter.set("vars", vars);//$NON-NLS-1$
2
            bshInterpreter.set("vars", vars);//$NON-NLS-1$
3
            bshInterpreter.set("sampler", sam);//$NON-NLS-1$
3
            bshInterpreter.set("prev", prev);//$NON-NLS-1$
4
            bshInterpreter.set("prev", prev);//$NON-NLS-1$
4
            bshInterpreter.set("data", prev.getResponseData());//$NON-NLS-1$
5
            
6
            processFileOrScript(bshInterpreter);
5
            processFileOrScript(bshInterpreter);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
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 comparisons25
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    10
    bshInterpreter.set("ctx", jmctx);
    9
    bshInterpreter.set("ctx", jmctx);
    11
    bshInterpreter.set("vars", vars);
    10
    bshInterpreter.set("vars", vars);
    12
    bshInterpreter.set("sampler", sam);
    12
    bshInterpreter.set("sampler", sam);
    13
    processFileOrScript(bshInterpreter);
    Differences
    Expression1Expression2Difference
    setprocessFileOrScriptMETHOD_INVOCATION_NAME_MISMATCH
    bshInterpreter.set("sampler",sam)processFileOrScript(bshInterpreter)ARGUMENT_NUMBER_MISMATCH
    bshInterpreterMISSING_METHOD_INVOCATION_EXPRESSION
    13
    processFileOrScript(bshInterpreter);
    13
    bshInterpreter.set("prev", prev);
    11
    bshInterpreter.set("prev", prev);
    14
    processFileOrScript(bshInterpreter);
    14
    processFileOrScript(bshInterpreter);
    12
    bshInterpreter.set("data", prev.getResponseData());
    Differences
    Expression1Expression2Difference
    processFileOrScriptsetMETHOD_INVOCATION_NAME_MISMATCH
    processFileOrScript(bshInterpreter)bshInterpreter.set("data",prev.getResponseData())ARGUMENT_NUMBER_MISMATCH
    bshInterpreterMISSING_METHOD_INVOCATION_EXPRESSION
    12
    bshInterpreter.set("data", prev.getResponseData());
    Precondition Violations (0)
    Row Violation