public void modifyTestElement(TestElement ic) { configureTestElement(ic); if (style.isSelected()) { ((InterleaveControl) ic).setStyle(InterleaveControl.IGNORE_SUB_CONTROLLERS); } else { ((InterleaveControl) ic).setStyle(InterleaveControl.USE_SUB_CONTROLLERS);
public void modifyTestElement(TestElement ic) { configureTestElement(ic); if (style.isSelected()) { ((RandomController) ic).setStyle(InterleaveControl.IGNORE_SUB_CONTROLLERS); } else { ((RandomController) ic).setStyle(InterleaveControl.USE_SUB_CONTROLLERS);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/InterleaveControlGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/RandomControlGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void modifyTestElement(TestElement ic) {
1
public void modifyTestElement(TestElement ic) {
2
		configureTestElement(ic);
2
		configureTestElement(ic);
3
		if (style.isSelected()) {
3
		if (style.isSelected()) {
4
			((InterleaveControl) ic).setStyle(InterleaveControl.IGNORE_SUB_CONTROLLERS);
4
			((RandomController) ic).setStyle(InterleaveControl.IGNORE_SUB_CONTROLLERS);
5
		} else {
5
		} else {
6
			((InterleaveControl) ic).setStyle(InterleaveControl.USE_SUB_CONTROLLERS);
6
			((RandomController) ic).setStyle(InterleaveControl.USE_SUB_CONTROLLERS);
7
		
7
		
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones location
Number of node comparisons0