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