super(); setMasterFunction(masterFunction); setVariables(variables); this.regexMatch = regexMatch;
skipNext = true; incrementCurrent(); return element;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/engine/util/ReplaceFunctionsWithStrings.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/InterleaveControl.java
Method name: void ReplaceFunctionsWithStrings(CompoundVariable, Map, boolean) Method name: Sampler nextIsASampler(Sampler)
Number of AST nodes: 4 Number of AST nodes: 3
1
super();
1
s
2
		setMasterFunction(masterFunction);
3
		setVariables(variables);
4
		this.regexMatch = regexMatch
2
kipNext = true;
3
		incrementCurrent();
5
;
4
		return element;
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 comparisons8
  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 fragment1
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
    1
    super();
                          
    2
    setMasterFunction(masterFunction);
    2
    setMasterFunction(masterFunction);
    2
    incrementCurrent();
    Differences
    Expression1Expression2Difference
    setMasterFunctionincrementCurrentMETHOD_INVOCATION_NAME_MISMATCH
    setMasterFunction(masterFunction)incrementCurrent()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression incrementCurrent() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression setMasterFunction(masterFunction) is a void method call, and thus it cannot be parameterized
    Expression incrementCurrent() is a void method call, and thus it cannot be parameterized
    Expression incrementCurrent() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression setMasterFunction(masterFunction) is a void method call, and thus it cannot be parameterized
    Expression incrementCurrent() is a void method call, and thus it cannot be parameterized
    2
    incrementCurrent();
    3
    setVariables(variables);
                                                          
    4
    this.regexMatch = regexMatch;
    4
    this.regexMatch = regexMatch;
    1
    skipNext = true;
    Differences
    Expression1Expression2Difference
    this.regexMatchskipNextTYPE_COMPATIBLE_REPLACEMENT
    regexMatchtrueTYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression this.regexMatch is a field being modified, and thus it cannot be parameterized
    Expression skipNext is a field being modified, and thus it cannot be parameterized
    1
    skipNext = true;
                                        
    3
    return element;
    Preondition Violations
    Unmatched return element;
    3
    return element;
    Precondition Violations (9)
    Row Violation
    1Expression incrementCurrent() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression setMasterFunction(masterFunction) is a void method call, and thus it cannot be parameterized
    3Expression incrementCurrent() is a void method call, and thus it cannot be parameterized
    4Expression incrementCurrent() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    5Expression setMasterFunction(masterFunction) is a void method call, and thus it cannot be parameterized
    6Expression incrementCurrent() is a void method call, and thus it cannot be parameterized
    7Expression this.regexMatch is a field being modified, and thus it cannot be parameterized
    8Expression skipNext is a field being modified, and thus it cannot be parameterized
    9Unmatched return element;