skipNext = true; incrementCurrent(); return element;
startingEdit = true; startEditing(); startingEdit = false;
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/InterleaveControl.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testbeans/gui/ComboStringEditor.java
Method name: Sampler nextIsASampler(Sampler) Method name: void itemStateChanged(ItemEvent)
Number of AST nodes: 3 Number of AST nodes: 3
1
skipNext = true;
1
startingEdit = true;
2
		incrementCurrent();
2
		
3
		return element
3
		startEditing();
4
;
4
				startingEdit = false;
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 comparisons7
  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;
    1
    skipNext = true;
    3
    startingEdit = true;
    Differences
    Expression1Expression2Difference
    skipNextstartingEditVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression skipNext is a field being modified, and thus it cannot be parameterized
    Expression startingEdit is a field being modified, and thus it cannot be parameterized
    3
    startingEdit = true;
    2
    incrementCurrent();
    2
    incrementCurrent();
    4
    startEditing();
    Differences
    Expression1Expression2Difference
    incrementCurrentstartEditingMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression incrementCurrent() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression incrementCurrent() is a void method call, and thus it cannot be parameterized
    Expression startEditing() is a void method call, and thus it cannot be parameterized
    4
    startEditing();
    3
    return element;
    3
    return element;
    Preondition Violations
    Unmatched return element;
                                        
                                                
    5
    startingEdit = false;
    Precondition Violations (6)
    Row Violation
    1Expression skipNext is a field being modified, and thus it cannot be parameterized
    2Expression startingEdit is a field being modified, and thus it cannot be parameterized
    3Expression incrementCurrent() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression incrementCurrent() is a void method call, and thus it cannot be parameterized
    5Expression startEditing() is a void method call, and thus it cannot be parameterized
    6Unmatched return element;