if (element instanceof IfController) { IfController ifController = (IfController) element; theCondition.setText(ifController.getCondition()); evaluateAll.setSelected(ifController.isEvaluateAll()); }
super.clearGui(); ldapDefaultPanel.clearGui(); loginPanel.clearGui();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/IfControllerPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/control/gui/LdapTestSamplerGui.java
Method name: void configure(TestElement) Method name: void clearGui()
Number of AST nodes: 4 Number of AST nodes: 3
1
if (element instanceof IfController) {
2
			IfController ifController = (IfController) element;
3
			theCondition.setText(ifController.getCondition());
4
			evaluateAll.setSelected(ifController.isEvaluateAll());
5
		}
1
super.clearGui();
2
        ldapDefaultPanel.clearGui();
3
        loginPanel.clearGui();
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 statements2
    Number of unmapped statements in the first code fragment1
    Number of unmapped statements in the second code fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    3
    IfController ifController = (IfController)element;
                                                                                                          
    4
    theCondition.setText(ifController.getCondition());
    4
    theCondition.setText(ifController.getCondition());
    1
    super.clearGui();
    Differences
    Expression1Expression2Difference
    theCondition.setText(ifController.getCondition())super.clearGui()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression theCondition.setText(ifController.getCondition()) 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();
                                                                  
    2
    ldapDefaultPanel.clearGui();
    5
    evaluateAll.setSelected(ifController.isEvaluateAll());
    5
    evaluateAll.setSelected(ifController.isEvaluateAll());
    3
    loginPanel.clearGui();
    Differences
    Expression1Expression2Difference
    setSelectedclearGuiMETHOD_INVOCATION_NAME_MISMATCH
    evaluateAllloginPanelVARIABLE_NAME_MISMATCH
    javax.swing.JCheckBoxorg.apache.jmeter.config.gui.LoginConfigGuiSUBCLASS_TYPE_MISMATCH
    evaluateAll.setSelected(ifController.isEvaluateAll())loginPanel.clearGui()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression evaluateAll.setSelected(ifController.isEvaluateAll()) 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 evaluateAll.setSelected(ifController.isEvaluateAll()) 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
    3
    loginPanel.clearGui();
    Precondition Violations (6)
    Row Violation
    1Expression theCondition.setText(ifController.getCondition()) is a void method call, and thus it cannot be parameterized
    2Expression super.clearGui() is a void method call, and thus it cannot be parameterized
    3Expression evaluateAll.setSelected(ifController.isEvaluateAll()) is a void method call, and thus it cannot be parameterized
    4Expression loginPanel.clearGui() is a void method call, and thus it cannot be parameterized
    5Expression evaluateAll.setSelected(ifController.isEvaluateAll()) is a void method call, and thus it cannot be parameterized
    6Expression loginPanel.clearGui() is a void method call, and thus it cannot be parameterized