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); }
String getJNDIInitialContextFactory() { return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC); } /** * set the provider user for jndi * * @param url the provider URL */ public void setProviderUrl(String url) { setProperty(PROVIDER_URL, url); } /** * method returns the provider url for jndi to connect to * * @return the provider URL */ public String getProviderUrl() { return getPropertyAsString(PROVIDER_URL); }
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/jms/sampler/BaseJMSSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getPort() {
1
String getJNDIInitialContextFactory() {
2
		return getPropertyAsString(PORT);
2
		return getPropertyAsString(
3
	}
4
	/*************************************************************************
3
JNDI_INITIAL_CONTEXT_FAC);
4
	}
5
**
5
	/**
6
	 * Sets the Rootdn attribute of the LDAPSampler object
6
	 * set the 
7
	 * 
8
	 * @param newRootdn 
9
	 *            The new rootdn value
10
	 **************************************************************************/
11
	public void setRootdn(String newRootdn
7
provider user for jndi
8
	 * 
9
	 * @param url the provider URL
10
	 */
12
) {
11
	public void setProviderUrl(String url) {
13
		this.setProperty(ROOTDN, newRootdn);
12
		setProperty(PRO
14
	}
15
	/*************************************************************************
13
VIDER_URL, url);
14
	}
16
**
15
	/**
17
	 * Gets the Rootdn attribute of the LDAPSampler object
16
	 * method returns the provider url for jndi to connect to
18
	 * 
17
	 * 
19
	 * @return The Rootdn value
18
	 * @return the 
20
	 *************************************************************************
19
provider URL
21
*/
20
	 */
22
	public String getRootdn() {
21
	public String getProviderUrl() {
23
		return getPropertyAsString(ROOTDN);
22
		return getPropertyAsString(PROVIDER_URL);
24
	}
23
	}
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