void setServername(String servername) { setProperty(new StringProperty(SERVERNAME, servername)); } /** * Sets the Port attribute of the ServerConfig object. * * @param port * the new Port value */ public void setPort(String port) { setProperty(new StringProperty(PORT, port)); } /** * Gets the servername attribute of the LDAPSampler object. * * @return the Servername value */ public String getServername() { return getPropertyAsString(SERVERNAME); } /** * Gets the Port attribute of the LDAPSampler object. * * @return the Port value */ public String getPort() { return getPropertyAsString(PORT); } /** * Sets the Rootdn attribute of the LDAPSampler object. * * @param newRootdn * the new rootdn value */ public void setRootdn(String newRootdn) { this.setProperty(ROOTDN, newRootdn); } /** * Gets the Rootdn attribute of the LDAPSampler object. * * @return the Rootdn value */ public String getRootdn() { return getPropertyAsString(ROOTDN); }
void setServername(String servername) { setProperty(new StringProperty(SERVERNAME, servername)); } /*************************************************************************** * Sets the Port attribute of the ServerConfig object * * @param port * The new Port value **************************************************************************/ public void setPort(String port) { setProperty(new StringProperty(PORT, port)); } /*************************************************************************** * Gets the servername attribute of the LDAPSampler object * * @return The Servername value **************************************************************************/ public String getServername() { return getPropertyAsString(SERVERNAME); } /*************************************************************************** * Gets the Port attribute of the LDAPSampler object * * @return The Port value **************************************************************************/ public String getPort() { return getPropertyAsString(PORT); } /*************************************************************************** * Sets the Rootdn attribute of the LDAPSampler object * * @param newRootdn * The new rootdn value **************************************************************************/ public void setRootdn(String newRootdn) { this.setProperty(ROOTDN, newRootdn); } /*************************************************************************** * Gets the Rootdn attribute of the LDAPSampler object * * @return The Rootdn value **************************************************************************/ public String getRootdn() { return getPropertyAsString(ROOTDN); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.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 setServername(String servername) {
1
void setServername(String servername) {
2
		setProperty(new StringProperty(SERVERNAME, servername));
2
		setProperty(new StringProperty(SERVERNAME, servername));
3
	}
3
	}
4
	/**
4
	/***************************************************************************
5
	 * Sets the Port attribute of the ServerConfig object.
5
	 * Sets the Port attribute of the ServerConfig object
6
	 * 
6
	 * 
7
	 * @param port
7
	 * @param port
8
	 *            the new Port value
8
	 *            The new Port value
9
	 */
9
	 **************************************************************************/
10
	public void setPort(String port) {
10
	public void setPort(String port) {
11
		setProperty(new StringProperty(PORT, port));
11
		setProperty(new StringProperty(PORT, port));
12
	}
12
	}
13
	/**
13
	/***************************************************************************
14
	 * Gets the servername attribute of the LDAPSampler object.
14
	 * Gets the servername attribute of the LDAPSampler object
15
	 * 
15
	 * 
16
	 * @return the Servername value
16
	 * @return The Servername value
17
	 */
17
	 **************************************************************************/
18
	public String getServername() {
18
	public String getServername() {
19
		return getPropertyAsString(SERVERNAME);
19
		return getPropertyAsString(SERVERNAME);
20
	}
20
	}
21
	/**
21
	/***************************************************************************
22
	 * Gets the Port attribute of the LDAPSampler object.
22
	 * Gets the Port attribute of the LDAPSampler object
23
	 * 
23
	 * 
24
	 * @return the Port value
24
	 * @return The Port value
25
	 */
25
	 **************************************************************************/
26
	public String getPort() {
26
	public String getPort() {
27
		return getPropertyAsString(PORT);
27
		return getPropertyAsString(PORT);
28
	}
28
	}
29
	/**
29
	/***************************************************************************
30
	 * Sets the Rootdn attribute of the LDAPSampler object.
30
	 * Sets the Rootdn attribute of the LDAPSampler object
31
	 * 
31
	 * 
32
	 * @param newRootdn
32
	 * @param newRootdn 
33
	 *            the new rootdn value
33
	 *            The new rootdn value
34
	 */
34
	 **************************************************************************/
35
	public void setRootdn(String newRootdn) {
35
	public void setRootdn(String newRootdn) {
36
		this.setProperty(ROOTDN, newRootdn);
36
		this.setProperty(ROOTDN, newRootdn);
37
	}
37
	}
38
	/**
38
	/***************************************************************************
39
	 * Gets the Rootdn attribute of the LDAPSampler object.
39
	 * Gets the Rootdn attribute of the LDAPSampler object
40
	 * 
40
	 * 
41
	 * @return the Rootdn value
41
	 * @return The Rootdn value
42
	 */
42
	 **************************************************************************/
43
	public String getRootdn() {
43
	public String getRootdn() {
44
		return getPropertyAsString(ROOTDN);
44
		return getPropertyAsString(ROOTDN);
45
	}
45
	}
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