super.clearGui(); ftpDefaultPanel.clearGui(); loginPanel.clearGui();
replacer.replaceValues(model); model.startProxy(); start.setEnabled(false); stop.setEnabled(true); restart.setEnabled(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/proxy/gui/ProxyControlGui.java
Method name: void clearGui() Method name: void startProxy()
Number of AST nodes: 3 Number of AST nodes: 5
1
super.clearGui();
2
        ftpDefaultPanel.clearGui();
3
        loginPanel.clearGui(
1
replacer.replaceValues(model);
2
			model.startProxy();
3
			start.setEnabled(false);
4
			stop.setEnabled(true);
4
);
5
			restart.setEnabled(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 comparisons15
  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 fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super.clearGui();
    1
    super.clearGui();
    4
    replacer.replaceValues(model);
    Differences
    Expression1Expression2Difference
    super.clearGui()replacer.replaceValues(model)TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    Expression replacer.replaceValues(model) is a void method call, and thus it cannot be parameterized
    4
    replacer.replaceValues(model);
    2
    ftpDefaultPanel.clearGui();
    2
    ftpDefaultPanel.clearGui();
    6
    start.setEnabled(false);
    Differences
    Expression1Expression2Difference
    clearGuisetEnabledMETHOD_INVOCATION_NAME_MISMATCH
    ftpDefaultPanelstartVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.ftp.config.gui.FtpConfigGuijavax.swing.JButtonSUBCLASS_TYPE_MISMATCH
    ftpDefaultPanel.clearGui()start.setEnabled(false)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression ftpDefaultPanel.clearGui() is a void method call, and thus it cannot be parameterized
    Expression start.setEnabled(false) is a void method call, and thus it cannot be parameterized
    Expression ftpDefaultPanel.clearGui() is a void method call, and thus it cannot be parameterized
    Expression start.setEnabled(false) is a void method call, and thus it cannot be parameterized
    6
    start.setEnabled(false);
    3
    loginPanel.clearGui();
    3
    loginPanel.clearGui();
    7
    stop.setEnabled(true);
    Differences
    Expression1Expression2Difference
    clearGuisetEnabledMETHOD_INVOCATION_NAME_MISMATCH
    loginPanelstopVARIABLE_NAME_MISMATCH
    org.apache.jmeter.config.gui.LoginConfigGuijavax.swing.JButtonSUBCLASS_TYPE_MISMATCH
    loginPanel.clearGui()stop.setEnabled(true)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression loginPanel.clearGui() is a void method call, and thus it cannot be parameterized
    Expression stop.setEnabled(true) is a void method call, and thus it cannot be parameterized
    Expression loginPanel.clearGui() is a void method call, and thus it cannot be parameterized
    Expression stop.setEnabled(true) is a void method call, and thus it cannot be parameterized
    7
    stop.setEnabled(true);
    Precondition Violations (10)
    Row Violation
    1Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    2Expression replacer.replaceValues(model) is a void method call, and thus it cannot be parameterized
    3Expression ftpDefaultPanel.clearGui() is a void method call, and thus it cannot be parameterized
    4Expression start.setEnabled(false) is a void method call, and thus it cannot be parameterized
    5Expression ftpDefaultPanel.clearGui() is a void method call, and thus it cannot be parameterized
    6Expression start.setEnabled(false) is a void method call, and thus it cannot be parameterized
    7Expression loginPanel.clearGui() is a void method call, and thus it cannot be parameterized
    8Expression stop.setEnabled(true) is a void method call, and thus it cannot be parameterized
    9Expression loginPanel.clearGui() is a void method call, and thus it cannot be parameterized
    10Expression stop.setEnabled(true) is a void method call, and thus it cannot be parameterized