public void modifyTestElement(TestElement lc) { configureTestElement(lc); if (lc instanceof LoopController) { if (loops.getText().length() > 0) { ((LoopController) lc).setLoops(loops.getText()); } else { ((LoopController) lc).setLoops(-1);
public void modifyTestElement(TestElement controller) { configureTestElement(controller); if (controller instanceof WhileController) { if (theCondition.getText().length() > 0) { ((WhileController) controller).setCondition(theCondition.getText()); } else { ((WhileController) controller).setCondition(""); // $NON-NLS-1$
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/LoopControlPanel.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/control/gui/WhileControllerGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
public void modifyTestElement(TestElement lc) {
1
public void modifyTestElement(TestElement controller) {
2
		configureTestElement(lc);
2
		configureTestElement(
3
		if (lc
3
controller);
4
 instanceof LoopController) {
4
		if (controller instanceof WhileController) {
5
			if (loops.getText().length() > 0) {
5
			if (theCondition.getText().length() > 0) {
6
				((LoopController) lc).setLoops(loops.getText());
6
				((WhileController) controller).setCondition(theCondition.getText());
7
			} else {
7
			} else {
8
				((LoopController) lc).setLoops(-1);
8
				((WhileController) controller).setCondition(""); // $NON-NLS-1$
9
			
9
			
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