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 setUsername(String username) { setProperty(new StringProperty(ConfigTestElement.USERNAME, username)); } /** * Sets the Password attribute of the LoginConfig object. * * @param password * the new Password value */ public void setPassword(String password) { setProperty(new StringProperty(ConfigTestElement.PASSWORD, password)); } /** * Gets the Username attribute of the LoginConfig object. * * @return the Username value */ public String getUsername() { return getPropertyAsString(ConfigTestElement.USERNAME); } /** * Gets the Password attribute of the LoginConfig object. * * @return the Password value */ public String getPassword() { return getPropertyAsString(ConfigTestElement.PASSWORD);
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/config/LoginConfig.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setServername(String servername) {
1
void setUsername(String username) {
2
		setProperty(new StringProperty(SERVERNAME, servername));
2
		setProperty(new StringProperty(ConfigTestElement.USERNAME, username));
3
	}
3
	}
4
	/***************************************************************************
4
	/**
5
	 * Sets the Port attribute of the ServerConfig object
5
	 * Sets the Password attribute of the LoginConfig object.
6
	 * 
6
	 * 
7
	 * @param port
7
	 * @param password
8
	 *            The new Port value
8
	 *            the new Password value
9
	 **************************************************************************/
9
	 */
10
	public void setPort(String port) {
10
	public void setPassword(String password) {
11
		setProperty(new StringProperty(PORT, port));
11
		setProperty(new StringProperty(ConfigTestElement.PASSWORD, password));
12
	}
12
	}
13
	/***************************************************************************
13
	/**
14
	 * Gets the servername attribute of the LDAPSampler object
14
	 * Gets the Username attribute of the LoginConfig object.
15
	 * 
15
	 * 
16
	 * @return The Servername value
16
	 * @return the Username value
17
	 **************************************************************************/
17
	 *
18
/
18
	public String getServername() {
19
	public String getUsername() {
19
		return getPropertyAsString(SERVERNAME);
20
		return getPropertyAsString(
20
	}
21
	/*************************************************************************
21
ConfigTestElement.USERNAME);
22
	}
22
**
23
	/**
23
	 * Gets the Port attribute of the LDAPSampler object
24
	 * Gets the Password attribute of the LoginConfig object.
24
	 * 
25
	 * 
25
	 * @return The Port value
26
	 * @return the Password value
26
	 **************************************************************************/
27
	 */
27
	public String getPort() {
28
	public String getPassword() {
28
		return getPropertyAsString(PORT);
29
		return getPropertyAsString(ConfigTestElement.PASSWORD);
29
	
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