super.configure(el); filename.setText(el.getPropertyAsString(ResultSaver.FILENAME)); errorsOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.ERRORS_ONLY)); successOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.SUCCESS_ONLY));
super.configure(config); argsPanel.configure((Arguments) config.getProperty(JavaSampler.ARGUMENTS).getObjectValue()); classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME));
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/reporters/gui/ResultSaverGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/config/gui/JavaConfigGui.java
Method name: void configure(TestElement) Method name: void configure(TestElement)
Number of AST nodes: 4 Number of AST nodes: 3
1
super.configure(el);
1
super.configure(
2
		filename.setText(el.getPropertyAsString(ResultSaver.FILENAME));
3
		errorsOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.ERRORS_ONLY));
4
        successOnly
2
config);
3
		argsPanel.configure((Arguments) config.getProperty(JavaSampler.ARGUMENTS).getObjectValue());
5
.setSelected(el.getPropertyAsBoolean(ResultSaver.SUCCESS_ONLY));
4
		classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME));
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 comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    super.configure(el);
    1
    super.configure(el);
    2
    argsPanel.configure((Arguments)config.getProperty(JavaSampler.ARGUMENTS).getObjectValue());
    Differences
    Expression1Expression2Difference
    super.configure(el)argsPanel.configure((Arguments)config.getProperty(JavaSampler.ARGUMENTS).getObjectValue())TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.configure(el) is a void method call, and thus it cannot be parameterized
    Expression argsPanel.configure((Arguments)config.getProperty(JavaSampler.ARGUMENTS).getObjectValue()) is a void method call, and thus it cannot be parameterized
    2
    argsPanel.configure((Arguments)config.getProperty(JavaSampler.ARGUMENTS).getObjectValue());
    2
    filename.setText(el.getPropertyAsString(ResultSaver.FILENAME));
    2
    filename.setText(el.getPropertyAsString(ResultSaver.FILENAME));
    3
    classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME));
    Differences
    Expression1Expression2Difference
    setTextsetSelectedItemMETHOD_INVOCATION_NAME_MISMATCH
    org.apache.jmeter.reporters.ResultSaverorg.apache.jmeter.protocol.java.sampler.JavaSamplerSUBCLASS_TYPE_MISMATCH
    FILENAMECLASSNAMEVARIABLE_NAME_MISMATCH
    elconfigVARIABLE_NAME_MISMATCH
    filenameclassnameComboVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldjavax.swing.JComboBoxSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression filename.setText(el.getPropertyAsString(ResultSaver.FILENAME)) is a void method call, and thus it cannot be parameterized
    Expression classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME)) is a void method call, and thus it cannot be parameterized
    3
    classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME));
    3
    errorsOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.ERRORS_ONLY));
    3
    errorsOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.ERRORS_ONLY));
    1
    super.configure(config);
    Differences
    Expression1Expression2Difference
    errorsOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.ERRORS_ONLY))super.configure(config)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression errorsOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.ERRORS_ONLY)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression errorsOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.ERRORS_ONLY)) is a void method call, and thus it cannot be parameterized
    Expression super.configure(config) is a void method call, and thus it cannot be parameterized
    1
    super.configure(config);
    4
    successOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.SUCCESS_ONLY));
    4
    successOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.SUCCESS_ONLY));
    Preondition Violations
    Unmatched statement successOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.SUCCESS_ONLY)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                                                                                
    Precondition Violations (9)
    Row Violation
    1Expression super.configure(el) is a void method call, and thus it cannot be parameterized
    2Expression argsPanel.configure((Arguments)config.getProperty(JavaSampler.ARGUMENTS).getObjectValue()) is a void method call, and thus it cannot be parameterized
    3Expression classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression filename.setText(el.getPropertyAsString(ResultSaver.FILENAME)) is a void method call, and thus it cannot be parameterized
    5Expression classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME)) is a void method call, and thus it cannot be parameterized
    6Expression errorsOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.ERRORS_ONLY)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression errorsOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.ERRORS_ONLY)) is a void method call, and thus it cannot be parameterized
    8Expression super.configure(config) is a void method call, and thus it cannot be parameterized
    9Unmatched statement successOnly.setSelected(el.getPropertyAsBoolean(ResultSaver.SUCCESS_ONLY)); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted