super.configure(el); delayField.setText(el.getPropertyAsString(RandomTimer.DELAY)); rangeField.setText(el.getPropertyAsString(RandomTimer.RANGE));
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/timers/gui/UniformRandomTimerGui.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: 3 Number of AST nodes: 3
1
super.configure(el);
1
super.configure(
2
		delayField.setText(el.getPropertyAsString(RandomTimer.DELAY
2
config);
3
));
3
		argsPanel.configure((Arguments) config.getProperty(JavaSampler.ARGUMENTS).getObjectValue());
4
		rangeField.setText(el.getPropertyAsString(RandomTimer.RANGE));
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 comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    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
    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
    delayField.setText(el.getPropertyAsString(RandomTimer.DELAY));
    2
    delayField.setText(el.getPropertyAsString(RandomTimer.DELAY));
    1
    super.configure(config);
    Differences
    Expression1Expression2Difference
    delayField.setText(el.getPropertyAsString(RandomTimer.DELAY))super.configure(config)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression delayField.setText(el.getPropertyAsString(RandomTimer.DELAY)) 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);
    3
    rangeField.setText(el.getPropertyAsString(RandomTimer.RANGE));
    3
    rangeField.setText(el.getPropertyAsString(RandomTimer.RANGE));
    3
    classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME));
    Differences
    Expression1Expression2Difference
    setTextsetSelectedItemMETHOD_INVOCATION_NAME_MISMATCH
    org.apache.jmeter.timers.RandomTimerorg.apache.jmeter.protocol.java.sampler.JavaSamplerSUBCLASS_TYPE_MISMATCH
    RANGECLASSNAMEVARIABLE_NAME_MISMATCH
    elconfigVARIABLE_NAME_MISMATCH
    rangeFieldclassnameComboVARIABLE_NAME_MISMATCH
    javax.swing.JTextFieldjavax.swing.JComboBoxSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression rangeField.setText(el.getPropertyAsString(RandomTimer.RANGE)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression rangeField.setText(el.getPropertyAsString(RandomTimer.RANGE)) 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));
    Precondition Violations (8)
    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 delayField.setText(el.getPropertyAsString(RandomTimer.DELAY)) is a void method call, and thus it cannot be parameterized
    4Expression super.configure(config) is a void method call, and thus it cannot be parameterized
    5Expression rangeField.setText(el.getPropertyAsString(RandomTimer.RANGE)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME)) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression rangeField.setText(el.getPropertyAsString(RandomTimer.RANGE)) is a void method call, and thus it cannot be parameterized
    8Expression classnameCombo.setSelectedItem(config.getPropertyAsString(JavaSampler.CLASSNAME)) is a void method call, and thus it cannot be parameterized