void setName(String name) { setProperty(TestElement.NAME, name); } public String getName() { return getPropertyAsString(TestElement.NAME); } public void setComment(String comment){ setProperty(new StringProperty(TestElement.COMMENTS, comment)); }
void setAttrs(String newAttrs) { this.setProperty(ATTRIBS, newAttrs); } /*************************************************************************** * Gets the attributes of the LDAPSampler object * * @return The attributes **************************************************************************/ public String getAttrs() { return getPropertyAsString(ATTRIBS); } /*************************************************************************** * Sets the Base Entry DN attribute of the LDAPSampler object * * @param newbaseentry * The new Base entry DN value **************************************************************************/ public void setBaseEntryDN(String newbaseentry) { setProperty(new StringProperty(BASE_ENTRY_DN, newbaseentry)); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/AbstractTestElement.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setName(String name) {
1
void setAttrs(String newAttrs) {
2
		setProperty(TestElement.NAME, name);
2
		this.setProperty(
3
	}
3
ATTRIBS, newAttrs);
4
	}
5
	/***************************************************************************
6
	 * Gets the attributes of the LDAPSampler object
7
	 * 
8
	 * @return The attributes
9
	 **************************************************************************/
4
	public String getName() {
10
	public String getAttrs() {
5
		return getPropertyAsString(TestElement.NAME);
11
		return getPropertyAsString(
6
	}
12
ATTRIBS);
13
	}
14
	/***************************************************************************
15
	 * Sets the Base Entry DN attribute of the LDAPSampler object
16
	 * 
17
	 * @param newbaseentry
18
	 *            The new Base entry DN value
19
	 **************************************************************************/
7
	public void setComment(String comment){
20
	public void setBaseEntryDN(String newbaseentry) {
8
		setProperty(new StringProperty(TestElement.COMMENTS, comment));
21
		setProperty(new StringProperty(BASE_ENTRY_DN, newbaseentry));
9
	}
22
	}
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