super.configure(element); loginPanel.configure(element); ftpDefaultPanel.configure(element);
super.clearGui(); urlConfig.clear(); imageParser.setSelected(false);
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/http/config/gui/HttpDefaultsGui.java
Method name: void configure(TestElement) Method name: void clearGui()
Number of AST nodes: 3 Number of AST nodes: 3
1
super.configure(element);
1
super.c
2
		loginPanel.configure(element);
3
		ftpDefaultPanel.configure(element
2
learGui();
3
        urlConfig.clear();
4
);
4
        imageParser.setSelected(false);
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(element);
    1
    super.configure(element);
    3
    imageParser.setSelected(false);
    Differences
    Expression1Expression2Difference
    super.configure(element)imageParser.setSelected(false)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.configure(element) is a void method call, and thus it cannot be parameterized
    Expression imageParser.setSelected(false) is a void method call, and thus it cannot be parameterized
    3
    imageParser.setSelected(false);
    2
    loginPanel.configure(element);
    2
    loginPanel.configure(element);
    1
    super.clearGui();
    Differences
    Expression1Expression2Difference
    loginPanel.configure(element)super.clearGui()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression loginPanel.configure(element) is a void method call, and thus it cannot be parameterized
    Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    1
    super.clearGui();
    3
    ftpDefaultPanel.configure(element);
    3
    ftpDefaultPanel.configure(element);
    2
    urlConfig.clear();
    Differences
    Expression1Expression2Difference
    configureclearMETHOD_INVOCATION_NAME_MISMATCH
    ftpDefaultPanelurlConfigVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.ftp.config.gui.FtpConfigGuiorg.apache.jmeter.protocol.http.config.gui.UrlConfigGuiSUBCLASS_TYPE_MISMATCH
    ftpDefaultPanel.configure(element)urlConfig.clear()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression ftpDefaultPanel.configure(element) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression ftpDefaultPanel.configure(element) is a void method call, and thus it cannot be parameterized
    Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized
    Expression ftpDefaultPanel.configure(element) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression ftpDefaultPanel.configure(element) is a void method call, and thus it cannot be parameterized
    Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized
    2
    urlConfig.clear();
    Precondition Violations (10)
    Row Violation
    1Expression super.configure(element) is a void method call, and thus it cannot be parameterized
    2Expression imageParser.setSelected(false) is a void method call, and thus it cannot be parameterized
    3Expression loginPanel.configure(element) is a void method call, and thus it cannot be parameterized
    4Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    5Expression ftpDefaultPanel.configure(element) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression ftpDefaultPanel.configure(element) is a void method call, and thus it cannot be parameterized
    7Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized
    8Expression ftpDefaultPanel.configure(element) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression ftpDefaultPanel.configure(element) is a void method call, and thus it cannot be parameterized
    10Expression urlConfig.clear() is a void method call, and thus it cannot be parameterized