if (endOfLoop()) { reInitialize();// ?? resetLoopCount(); return null; }
skipNext = true; incrementCurrent(); return element;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/RunTime.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/InterleaveControl.java
Method name: Sampler next() Method name: Sampler nextIsASampler(Sampler)
Number of AST nodes: 4 Number of AST nodes: 3
1
if (endOfLoop()) {
2
			reInitialize();// ??
1
skipNext = true;
3
			resetLoopCount();
2
		incrementCurrent();
4
			return null;
3
		return 
5
		}
4
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 having the same super class
Number of node comparisons6
  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
                                      
    1
    skipNext = true;
    4
    reInitialize();
                                        
    5
    resetLoopCount();
    5
    resetLoopCount();
    2
    incrementCurrent();
    Differences
    Expression1Expression2Difference
    resetLoopCountincrementCurrentMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression resetLoopCount() 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();
    6
    return null;
    6
    return null;
    3
    return element;
    Differences
    Expression1Expression2Difference
    nullelementTYPE_COMPATIBLE_REPLACEMENT
    3
    return element;
    Precondition Violations (2)
    Row Violation
    1Expression resetLoopCount() is a void method call, and thus it cannot be parameterized
    2Expression incrementCurrent() is a void method call, and thus it cannot be parameterized