resetInterpreter = new JCheckBox(JMeterUtils.getResString("bsh_script_reset_interpreter")); // $NON-NLS-1$ resetInterpreter.setName(BeanShellAssertion.PARAMETERS); JPanel resetInterpreterPanel = new JPanel(new BorderLayout()); resetInterpreterPanel.add(resetInterpreter, BorderLayout.WEST); return resetInterpreterPanel;
resetInterpreter = new JCheckBox(JMeterUtils.getResString("bsh_script_reset_interpreter")); // $NON-NLS-1$ resetInterpreter.setName(BeanShellSampler.PARAMETERS); JPanel resetInterpreterPanel = new JPanel(new BorderLayout()); resetInterpreterPanel.add(resetInterpreter, BorderLayout.WEST); return resetInterpreterPanel;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/assertions/gui/BeanShellAssertionGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/control/gui/BeanShellSamplerGui.java
Method name: JPanel createResetPanel() Method name: JPanel createResetPanel()
Number of AST nodes: 5 Number of AST nodes: 5
1
resetInterpreter = new JCheckBox(JMeterUtils.getResString("bsh_script_reset_interpreter")); // $NON-NLS-1$
1
resetInterpreter = new JCheckBox(JMeterUtils.getResString("bsh_script_reset_interpreter")); // $NON-NLS-1$
2
        resetInterpreter.setName(BeanShellAssertion.PARAMETERS);
2
        resetInterpreter.setName(BeanShellSampler.PARAMETERS);
3
        JPanel resetInterpreterPanel = new JPanel(new BorderLayout());
3
        JPanel resetInterpreterPanel = new JPanel(new BorderLayout());
4
        resetInterpreterPanel.add(resetInterpreter, BorderLayout.WEST);
4
        resetInterpreterPanel.add(resetInterpreter, BorderLayout.WEST);
5
        return resetInterpreterPanel;
5
        return resetInterpreterPanel;
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 comparisons9
  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
    resetInterpreter = new JCheckBox(JMeterUtils.getResString("bsh_script_reset_interpreter"));
    1
    resetInterpreter = new JCheckBox(JMeterUtils.getResString("bsh_script_reset_interpreter"));
    2
    resetInterpreter.setName(BeanShellAssertion.PARAMETERS);
    2
    resetInterpreter.setName(BeanShellAssertion.PARAMETERS);
    2
    resetInterpreter.setName(BeanShellSampler.PARAMETERS);
    Differences
    Expression1Expression2Difference
    org.apache.jmeter.assertions.BeanShellAssertionorg.apache.jmeter.protocol.java.sampler.BeanShellSamplerSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression BeanShellAssertion cannot be unified with expression BeanShellSampler , because common superclass org.apache.jmeter.util.BeanShellTestElement does not declare member(s) public static final java.lang.String PARAMETERS
    2
    resetInterpreter.setName(BeanShellSampler.PARAMETERS);
    3
    JPanel resetInterpreterPanel = new JPanel(new BorderLayout());
    3
    JPanel resetInterpreterPanel = new JPanel(new BorderLayout());
    4
    resetInterpreterPanel.add(resetInterpreter, BorderLayout.WEST);
    4
    resetInterpreterPanel.add(resetInterpreter, BorderLayout.WEST);
    5
    return resetInterpreterPanel;
    5
    return resetInterpreterPanel;
    Precondition Violations (1)
    Row Violation
    1Expression BeanShellAssertion cannot be unified with expression BeanShellSampler , because common superclass org.apache.jmeter.util.BeanShellTestElement does not declare member(s) public static final java.lang.String PARAMETERS