sampler.clear(); ftpDefaultPanel.modifyTestElement(sampler); loginPanel.modifyTestElement(sampler); this.configureTestElement(sampler);
this.SERVERMAP.clear(); ROOTNODE.removeAllChildren(); SERVERTREE.updateUI(); GRAPH.clearData();
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/visualizers/MonitorPerformancePanel.java
Method name: void modifyTestElement(TestElement) Method name: void clearData()
Number of AST nodes: 4 Number of AST nodes: 4
1
sampler.clear();
2
		ftpDefaultPanel.modifyTestElement(sampler);
3
		loginPanel.modifyTestElement(sampler);
4
		this.configureTestElement(sampler
1
this.SERVERMAP.clear();
2
		ROOTNODE.removeAllChildren();
3
		SERVERTREE.updateUI();
5
);
4
		GRAPH.clearData();
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 comparisons16
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements2
    Number of unmapped statements in the first code fragment2
    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
    this.SERVERMAP.clear();
    1
    sampler.clear();
                                          
                                                                    
    2
    ROOTNODE.removeAllChildren();
    2
    ftpDefaultPanel.modifyTestElement(sampler);
    2
    ftpDefaultPanel.modifyTestElement(sampler);
    4
    GRAPH.clearData();
    Differences
    Expression1Expression2Difference
    modifyTestElementclearDataMETHOD_INVOCATION_NAME_MISMATCH
    ftpDefaultPanelGRAPHVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.ftp.config.gui.FtpConfigGuiorg.apache.jmeter.visualizers.MonitorGraphSUBCLASS_TYPE_MISMATCH
    ftpDefaultPanel.modifyTestElement(sampler)GRAPH.clearData()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression ftpDefaultPanel.modifyTestElement(sampler) is a void method call, and thus it cannot be parameterized
    Expression GRAPH.clearData() is a void method call, and thus it cannot be parameterized
    Expression ftpDefaultPanel.modifyTestElement(sampler) is a void method call, and thus it cannot be parameterized
    Expression GRAPH.clearData() is a void method call, and thus it cannot be parameterized
    4
    GRAPH.clearData();
    3
    loginPanel.modifyTestElement(sampler);
    3
    loginPanel.modifyTestElement(sampler);
    3
    SERVERTREE.updateUI();
    Differences
    Expression1Expression2Difference
    modifyTestElementupdateUIMETHOD_INVOCATION_NAME_MISMATCH
    loginPanelSERVERTREEVARIABLE_NAME_MISMATCH
    org.apache.jmeter.config.gui.LoginConfigGuijavax.swing.JTreeSUBCLASS_TYPE_MISMATCH
    loginPanel.modifyTestElement(sampler)SERVERTREE.updateUI()ARGUMENT_NUMBER_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 SERVERTREE.updateUI() is a void method call, and thus it cannot be parameterized
    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 SERVERTREE.updateUI() is a void method call, and thus it cannot be parameterized
    3
    SERVERTREE.updateUI();
    4
    this.configureTestElement(sampler);
    4
    this.configureTestElement(sampler);
    Preondition Violations
    Unmatched statement this.configureTestElement(sampler); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted
                                                                                
    Precondition Violations (11)
    Row Violation
    1Expression ftpDefaultPanel.modifyTestElement(sampler) is a void method call, and thus it cannot be parameterized
    2Expression GRAPH.clearData() is a void method call, and thus it cannot be parameterized
    3Expression ftpDefaultPanel.modifyTestElement(sampler) is a void method call, and thus it cannot be parameterized
    4Expression GRAPH.clearData() is a void method call, and thus it cannot be parameterized
    5Expression loginPanel.modifyTestElement(sampler) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    6Expression loginPanel.modifyTestElement(sampler) is a void method call, and thus it cannot be parameterized
    7Expression SERVERTREE.updateUI() is a void method call, and thus it cannot be parameterized
    8Expression loginPanel.modifyTestElement(sampler) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    9Expression loginPanel.modifyTestElement(sampler) is a void method call, and thus it cannot be parameterized
    10Expression SERVERTREE.updateUI() is a void method call, and thus it cannot be parameterized
    11Unmatched statement this.configureTestElement(sampler); cannot be moved before or after the extracted code, because it has dependencies to/from statements that will be extracted