TestElement createTestElement() { UserParameterModifier mod = new UserParameterModifier(); modifyTestElement(mod); return mod; } /** * Modifies a given TestElement to mirror the data in the gui components. * * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement) */ public void modifyTestElement(TestElement mod) { this.configureTestElement(mod); ((UserParameterModifier) mod).setXmlUri(fileNameField.getText()); }
TestElement createTestElement() { CacheManager element = new CacheManager(); modifyTestElement(element); return element; } /* Implements JMeterGUIComponent.modifyTestElement(TestElement) */ public void modifyTestElement(TestElement element) { configureTestElement(element); ((CacheManager)element).setClearEachIteration(clearEachIteration.isSelected()); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/modifier/gui/UserParameterModifierGui.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/gui/CacheManagerGui.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
TestElement createTestElement() {
1
TestElement createTestElement() {
2
		UserParameterModifier mod = new UserParameterModifier();
2
		CacheManager element = new CacheManager();
3
		modifyTestElement(mod);
3
		modifyTestElement(element);
4
		return mod;
4
		return element;
5
	}
5
	}
6
	/**
6
	/*
7
	 * Modifies a given TestElement to mirror the data in the gui components.
8
	 * 
9
	 * @see org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
7
 Implements JMeterGUIComponent.modifyTestElement(TestElement)
10
	 */
8
 */
11
	public void modifyTestElement(TestElement mod) {
9
	public void modifyTestElement(TestElement element) {
12
		this.configureTestElement(mod);
10
		configureTestElement(element);
13
		((UserParameterModifier) mod).setXmlUri(fileNameField.getText());
11
		((CacheManager)element).setClearEachIteration(clearEachIteration.isSelected());
14
	}
12
	}
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