scriptField.setText(element.getPropertyAsString(BeanShellSampler.SCRIPT)); filename.setText(element.getPropertyAsString(BeanShellSampler.FILENAME)); parameters.setText(element.getPropertyAsString(BeanShellSampler.PARAMETERS)); resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellSampler.RESET_INTERPRETER)); super.configure(element);
scriptField.setText(element.getPropertyAsString(BeanShellAssertion.SCRIPT)); filename.setText(element.getPropertyAsString(BeanShellAssertion.FILENAME)); parameters.setText(element.getPropertyAsString(BeanShellAssertion.PARAMETERS)); resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellAssertion.RESET_INTERPRETER)); super.configure(element);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/BeanShellAssertionGui.java
Method name: void configure(TestElement) Method name: void configure(TestElement)
Number of AST nodes: 5 Number of AST nodes: 5
1
scriptField.setText(element.getPropertyAsString(BeanShellSampler.SCRIPT));
1
scriptField.setText(element.getPropertyAsString(BeanShellAssertion.SCRIPT));
2
		filename.setText(element.getPropertyAsString(BeanShellSampler.FILENAME));
2
		filename.setText(element.getPropertyAsString(BeanShellAssertion.FILENAME));
3
		parameters.setText(element.getPropertyAsString(BeanShellSampler.PARAMETERS));
3
		parameters.setText(element.getPropertyAsString(BeanShellAssertion.PARAMETERS));
4
		resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellSampler.RESET_INTERPRETER));
4
        resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellAssertion.RESET_INTERPRETER));
5
		super.configure(element);
5
		super.configure(element);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
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. {Non-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
    1
    scriptField.setText(element.getPropertyAsString(BeanShellSampler.SCRIPT));
    1
    scriptField.setText(element.getPropertyAsString(BeanShellSampler.SCRIPT));
    1
    scriptField.setText(element.getPropertyAsString(BeanShellAssertion.SCRIPT));
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.protocol.java.sampler.BeanShellSamplerorg.apache.jmeter.assertions.BeanShellAssertionSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression BeanShellSampler cannot be unified with expression BeanShellAssertion , because common superclass org.apache.jmeter.util.BeanShellTestElement does not declare member(s) public static final java.lang.String SCRIPT
    1
    scriptField.setText(element.getPropertyAsString(BeanShellAssertion.SCRIPT));
    2
    filename.setText(element.getPropertyAsString(BeanShellSampler.FILENAME));
    2
    filename.setText(element.getPropertyAsString(BeanShellSampler.FILENAME));
    2
    filename.setText(element.getPropertyAsString(BeanShellAssertion.FILENAME));
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.protocol.java.sampler.BeanShellSamplerorg.apache.jmeter.assertions.BeanShellAssertionSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression BeanShellSampler cannot be unified with expression BeanShellAssertion , because common superclass org.apache.jmeter.util.BeanShellTestElement does not declare member(s) public static final java.lang.String FILENAME
    2
    filename.setText(element.getPropertyAsString(BeanShellAssertion.FILENAME));
    3
    parameters.setText(element.getPropertyAsString(BeanShellSampler.PARAMETERS));
    3
    parameters.setText(element.getPropertyAsString(BeanShellSampler.PARAMETERS));
    3
    parameters.setText(element.getPropertyAsString(BeanShellAssertion.PARAMETERS));
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.protocol.java.sampler.BeanShellSamplerorg.apache.jmeter.assertions.BeanShellAssertionSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression BeanShellSampler cannot be unified with expression BeanShellAssertion , because common superclass org.apache.jmeter.util.BeanShellTestElement does not declare member(s) public static final java.lang.String PARAMETERS
    3
    parameters.setText(element.getPropertyAsString(BeanShellAssertion.PARAMETERS));
    4
    resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellSampler.RESET_INTERPRETER));
    4
    resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellSampler.RESET_INTERPRETER));
    4
    resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellAssertion.RESET_INTERPRETER));
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.protocol.java.sampler.BeanShellSamplerorg.apache.jmeter.assertions.BeanShellAssertionSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression BeanShellSampler cannot be unified with expression BeanShellAssertion , because common superclass org.apache.jmeter.util.BeanShellTestElement does not declare member(s) public static final java.lang.String RESET_INTERPRETER
    4
    resetInterpreter.setSelected(element.getPropertyAsBoolean(BeanShellAssertion.RESET_INTERPRETER));
    5
    super.configure(element);
    5
    super.configure(element);
    5
    super.configure(element);
    Preondition Violations
    Super method call super.configure(element); cannot be extracted from method
    Super method call super.configure(element); cannot be extracted from method
    5
    super.configure(element);
    Precondition Violations (6)
    Row Violation
    1Expression BeanShellSampler cannot be unified with expression BeanShellAssertion , because common superclass org.apache.jmeter.util.BeanShellTestElement does not declare member(s) public static final java.lang.String SCRIPT
    2Expression BeanShellSampler cannot be unified with expression BeanShellAssertion , because common superclass org.apache.jmeter.util.BeanShellTestElement does not declare member(s) public static final java.lang.String FILENAME
    3Expression BeanShellSampler cannot be unified with expression BeanShellAssertion , because common superclass org.apache.jmeter.util.BeanShellTestElement does not declare member(s) public static final java.lang.String PARAMETERS
    4Expression BeanShellSampler cannot be unified with expression BeanShellAssertion , because common superclass org.apache.jmeter.util.BeanShellTestElement does not declare member(s) public static final java.lang.String RESET_INTERPRETER
    5Super method call super.configure(element); cannot be extracted from method
    6Super method call super.configure(element); cannot be extracted from method