super(); mTextField = createTextField(size); mLabel = new JLabel(pLabel); mLabel.setLabelFor(mTextField); init();
this.result = result; this.threadGroup = threadGroup; this.hostname = HOSTNAME; values = new String[variableNames.length]; saveVars(jmvars);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/gui/JLabeledTextField.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/samplers/SampleEvent.java
Method name: void JLabeledTextField(String, int) Method name: void SampleEvent(SampleResult, String, JMeterVariables)
Number of AST nodes: 5 Number of AST nodes: 5
1
super();
2
		mTextField
1
this.result = result;
3
 = createTextField(size);
2
		this.threadGroup = threa
4
		mLabel = new JLabel(pLabel);
5
		mLabel.setLabelFor(mTextField);
6
		init(
3
dGroup;
4
		this.hostname = HOSTNAME;
5
		values = new String[variableNames.length];
7
);
6
		saveVars(jmvars);
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
Number of node comparisons25
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment4
    Number of unmapped statements in the second code fragment4
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
                                                
    1
    this.result = result;
    1
    super();
                          
                                                                    
    2
    this.threadGroup = threadGroup;
    2
    mTextField = createTextField(size);
                                                                            
                                                        
    3
    this.hostname = HOSTNAME;
    3
    mLabel = new JLabel(pLabel);
                                                              
                                                                                          
    4
    values = new String[variableNames.length];
    4
    mLabel.setLabelFor(mTextField);
                                                                        
    5
    init();
    5
    init();
    5
    saveVars(jmvars);
    Differences
    Expression1Expression2Difference
    initsaveVarsMETHOD_INVOCATION_NAME_MISMATCH
    init()saveVars(jmvars)ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression saveVars(jmvars) is a void method call, and thus it cannot be parameterized
    Expression init() is a void method call, and thus it cannot be parameterized
    Expression saveVars(jmvars) is a void method call, and thus it cannot be parameterized
    5
    saveVars(jmvars);
    Precondition Violations (4)
    Row Violation
    1Expression init() is a void method call, and thus it cannot be parameterized
    2Expression saveVars(jmvars) is a void method call, and thus it cannot be parameterized
    3Expression init() is a void method call, and thus it cannot be parameterized
    4Expression saveVars(jmvars) is a void method call, and thus it cannot be parameterized