UserParameterModifier mod = new UserParameterModifier(); modifyTestElement(mod); return mod;
if (command.equals(ACTION_START)) { modifyTestElement(mirrorController); mirrorController.startHttpMirror(); start.setEnabled(false); stop.setEnabled(true); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/modifier/gui/UserParameterModifierGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/gui/HttpMirrorControlGui.java
Method name: TestElement createTestElement() Method name: void actionPerformed(ActionEvent)
Number of AST nodes: 3 Number of AST nodes: 5
1
UserParameterModifier mod = new UserParameterModifier();
1
if (command.equals(ACTION_START)) {
2
		modifyTestElement(mod);
2
			modifyTestElement(m
3
		return mod;
3
irrorController);
4
			mirrorController.startHttpMirror();
5
			start.setEnabled(false);
6
			stop.setEnabled(true);
7
		}
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 comparisons8
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment3
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    UserParameterModifier mod = new UserParameterModifier();
                                                                                                                      
    2
    modifyTestElement(mod);
    2
    modifyTestElement(mod);
    7
    modifyTestElement(mirrorController);
    Differences
    Expression1Expression2Difference
    modmirrorControllerVARIABLE_NAME_MISMATCH
    org.apache.jmeter.protocol.http.modifier.UserParameterModifierorg.apache.jmeter.protocol.http.control.HttpMirrorControlSUBCLASS_TYPE_MISMATCH
    7
    modifyTestElement(mirrorController);
    3
    return mod;
    3
    return mod;
    Preondition Violations
    Unmatched return mod;
                                
                                                                                
    8
    mirrorController.startHttpMirror();
                                                          
    9
    start.setEnabled(false);
                                                        
    10
    stop.setEnabled(true);
    Precondition Violations (1)
    Row Violation
    1Unmatched return mod;