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);
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);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.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
/
18
	public String getServername() {
19
	public String getServername() {
19
		return getPropertyAsString(SERVERNAME);
20
		return getPropertyAsString(SERVERNAME);
20
	}
21
	}
21
	/***************************************************************************
22
	/**
22
	 * Gets the Port attribute of the LDAPSampler object
23
	 * Gets the Port attribute of the LDAPSampler object.
23
	 * 
24
	 * 
24
	 * @return The Port value
25
	 * @return the Port value
25
	 **************************************************************************/
26
	 *
27
/
26
	public String getPort() {
28
	public String getPort() {
27
		return getPropertyAsString(PORT);
29
		return getPropertyAsString(PORT);
28
	
30
	
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