sampler.clear(); ftpDefaultPanel.modifyTestElement(sampler); loginPanel.modifyTestElement(sampler); this.configureTestElement(sampler);
super.configure(element); loginPanel.configure(element); ftpDefaultPanel.configure(element);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ftp/control/gui/FtpTestSamplerGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ftp/control/gui/FtpTestSamplerGui.java
Method name: void modifyTestElement(TestElement) Method name: void configure(TestElement)
Number of AST nodes: 4 Number of AST nodes: 3
1
sampler.clear();
1
s
2
		ftpDefaultPanel.modifyTestElement(sampler);
3
		loginPanel.modifyTestElement(sampler);
4
		this
2
uper.configure(element);
3
		loginPanel.configure(element);
5
.configureTestElement(sampler);
4
		ftpDefaultPanel.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 declared in the same 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
    sampler.clear();
    1
    sampler.clear();
    1
    super.configure(element);
    Differences
    Expression1Expression2Difference
    sampler.clear()super.configure(element)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression sampler.clear() is a void method call, and thus it cannot be parameterized
    Expression super.configure(element) is a void method call, and thus it cannot be parameterized
    1
    super.configure(element);
    2
    ftpDefaultPanel.modifyTestElement(sampler);
    2
    ftpDefaultPanel.modifyTestElement(sampler);
    Preondition Violations
    Unmatched statement ftpDefaultPanel.modifyTestElement(sampler); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                                
    3
    loginPanel.modifyTestElement(sampler);
    3
    loginPanel.modifyTestElement(sampler);
    2
    loginPanel.configure(element);
    Differences
    Expression1Expression2Difference
    modifyTestElementconfigureMETHOD_INVOCATION_NAME_MISMATCH
    samplerelementVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression loginPanel.modifyTestElement(sampler) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression loginPanel.modifyTestElement(sampler) is a void method call, and thus it cannot be parameterized
    Expression loginPanel.configure(element) is a void method call, and thus it cannot be parameterized
    2
    loginPanel.configure(element);
    4
    this.configureTestElement(sampler);
    4
    this.configureTestElement(sampler);
    3
    ftpDefaultPanel.configure(element);
    Differences
    Expression1Expression2Difference
    configureTestElementconfigureMETHOD_INVOCATION_NAME_MISMATCH
    samplerelementVARIABLE_NAME_MISMATCH
    thisftpDefaultPanelTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression this.configureTestElement(sampler) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression ftpDefaultPanel.configure(element) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression this.configureTestElement(sampler) is a void method call, and thus it cannot be parameterized
    Expression ftpDefaultPanel.configure(element) is a void method call, and thus it cannot be parameterized
    3
    ftpDefaultPanel.configure(element);
    Precondition Violations (10)
    Row Violation
    1Expression sampler.clear() is a void method call, and thus it cannot be parameterized
    2Expression super.configure(element) is a void method call, and thus it cannot be parameterized
    3Unmatched statement ftpDefaultPanel.modifyTestElement(sampler); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
    4Expression loginPanel.modifyTestElement(sampler) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression loginPanel.modifyTestElement(sampler) is a void method call, and thus it cannot be parameterized
    6Expression loginPanel.configure(element) is a void method call, and thus it cannot be parameterized
    7Expression this.configureTestElement(sampler) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression ftpDefaultPanel.configure(element) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression this.configureTestElement(sampler) is a void method call, and thus it cannot be parameterized
    10Expression ftpDefaultPanel.configure(element) is a void method call, and thus it cannot be parameterized