TestElement createTestElement() { InterleaveControl ic = new InterleaveControl(); modifyTestElement(ic); return ic; } /** * Modifies a given TestElement to mirror the data in the gui components. * * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement) */ 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); } } /** * Implements JMeterGUIComponent.clearGui */ public void clearGui() { super.clearGui(); style.setSelected(false);
TestElement createTestElement() { RandomController ic = new RandomController(); modifyTestElement(ic); return ic; } /** * Modifies a given TestElement to mirror the data in the gui components. * * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement) */ 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); } } /** * Implements JMeterGUIComponent.clearGui */ public void clearGui() { super.clearGui(); style.setSelected(false);
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
TestElement createTestElement() {
1
TestElement createTestElement() {
2
		InterleaveControl ic = new InterleaveControl();
2
		RandomController ic = new RandomController();
3
		modifyTestElement(ic);
3
		modifyTestElement(ic);
4
		return ic;
4
		return ic;
5
	}
5
	}
6
	/**
6
	/**
7
	 * Modifies a given TestElement to mirror the data in the gui components.
7
	 * Modifies a given TestElement to mirror the data in the gui components.
8
	 * 
8
	 * 
9
	 * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
9
	 * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
10
	 */
10
	 */
11
	public void modifyTestElement(TestElement ic) {
11
	public void modifyTestElement(TestElement ic) {
12
		configureTestElement(ic);
12
		configureTestElement(ic);
13
		if (style.isSelected()) {
13
		if (style.isSelected()) {
14
			((InterleaveControl) ic).setStyle(InterleaveControl.IGNORE_SUB_CONTROLLERS);
14
			((RandomController) ic).setStyle(InterleaveControl.IGNORE_SUB_CONTROLLERS);
15
		} else {
15
		} else {
16
			((InterleaveControl) ic).setStyle(InterleaveControl.USE_SUB_CONTROLLERS);
16
			((RandomController) ic).setStyle(InterleaveControl.USE_SUB_CONTROLLERS);
17
		}
17
		}
18
	}
18
	}
19
    /**
19
    /**
20
     * Implements JMeterGUIComponent.clearGui
20
     * Implements JMeterGUIComponent.clearGui
21
     */
21
     */
22
    public void clearGui() {
22
    public void clearGui() {
23
        super.clearGui();    
23
        super.clearGui(); 
24
        style.setSelected(false);
24
        style.setSelected(false);
25
    
25
    
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