if (index < size) { setCurrentPos(index); log.debug("Setting currentpos to " + index); removeRow(); }
resetCurrent(); incrementIterCount(); setFirst(true); recoverRunningVersion();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jorphan/collections/Data.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/GenericController.java
Method name: void removeRow(int) Method name: void reInitialize()
Number of AST nodes: 4 Number of AST nodes: 4
1
if (index < size) {
2
			setCurrentPos(index);
1
resetCurrent();
3
			log.debug("Setting currentpos to " + index
2
		incrementIterCount();
4
);
3
		setFirst(true);
5
			removeRow();
4
		recove
6
		}
5
rRunningVersion();
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 comparisons12
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    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
    3
    setCurrentPos(index);
    3
    setCurrentPos(index);
    1
    resetCurrent();
    Differences
    Expression1Expression2Difference
    setCurrentPosresetCurrentMETHOD_INVOCATION_NAME_MISMATCH
    setCurrentPos(index)resetCurrent()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression setCurrentPos(index) is a void method call, and thus it cannot be parameterized
    Expression resetCurrent() is a void method call, and thus it cannot be parameterized
    Expression setCurrentPos(index) is a void method call, and thus it cannot be parameterized
    Expression resetCurrent() is a void method call, and thus it cannot be parameterized
    1
    resetCurrent();
    4
    log.debug("Setting currentpos to " + index);
    4
    log.debug("Setting currentpos to " + index);
    2
    incrementIterCount();
    Differences
    Expression1Expression2Difference
    debugincrementIterCountMETHOD_INVOCATION_NAME_MISMATCH
    log.debug("Setting currentpos to " + index)incrementIterCount()ARGUMENT_NUMBER_MISMATCH
    logMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression log.debug("Setting currentpos to " + index) is a void method call, and thus it cannot be parameterized
    Expression incrementIterCount() is a void method call, and thus it cannot be parameterized
    Expression log.debug("Setting currentpos to " + index) is a void method call, and thus it cannot be parameterized
    Expression incrementIterCount() is a void method call, and thus it cannot be parameterized
    2
    incrementIterCount();
                                        
    3
    setFirst(true);
    5
    removeRow();
    5
    removeRow();
    4
    recoverRunningVersion();
    Differences
    Expression1Expression2Difference
    removeRowrecoverRunningVersionMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression removeRow() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression removeRow() is a void method call, and thus it cannot be parameterized
    Expression recoverRunningVersion() is a void method call, and thus it cannot be parameterized
    4
    recoverRunningVersion();
    Precondition Violations (11)
    Row Violation
    1Expression setCurrentPos(index) is a void method call, and thus it cannot be parameterized
    2Expression resetCurrent() is a void method call, and thus it cannot be parameterized
    3Expression setCurrentPos(index) is a void method call, and thus it cannot be parameterized
    4Expression resetCurrent() is a void method call, and thus it cannot be parameterized
    5Expression log.debug("Setting currentpos to " + index) is a void method call, and thus it cannot be parameterized
    6Expression incrementIterCount() is a void method call, and thus it cannot be parameterized
    7Expression log.debug("Setting currentpos to " + index) is a void method call, and thus it cannot be parameterized
    8Expression incrementIterCount() is a void method call, and thus it cannot be parameterized
    9Expression removeRow() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    10Expression removeRow() is a void method call, and thus it cannot be parameterized
    11Expression recoverRunningVersion() is a void method call, and thus it cannot be parameterized