String getTest() { return getPropertyAsString(TEST); } /*************************************************************************** * Sets the attributes of the LdapConfig object * * @param newAttrs * The new attributes value **************************************************************************/ public void setAttrs(String newAttrs) { this.setProperty(ATTRIBS, newAttrs); } /*************************************************************************** * Gets the attributes of the LDAPSampler object * * @return The attributes **************************************************************************/ public String getAttrs() { return getPropertyAsString(ATTRIBS); }
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 getTest() {
1
String getJNDIInitialContextFactory() {
2
		return getPropertyAsString(TEST);
2
		return getPropertyAsString(
3
	}
4
	/*************************************************************************
3
JNDI_INITIAL_CONTEXT_FAC);
4
	}
5
**
5
	/**
6
	 * Sets the attributes of the LdapConfig object
6
	 * set the 
7
	 * 
8
	 * @param newAttrs
9
	 *            The new attributes value
10
	 *************************************************************************
7
provider user for jndi
8
	 * 
9
	 * @param url the provider URL
11
*/
10
	 */
12
	public void setAttrs(String newAttrs) {
11
	public void setProviderUrl(String url) {
13
		this.setProperty(ATTRIBS, newAttrs);
12
		setProperty(
14
	}
15
	/*************************************************************************
13
PROVIDER_URL, url);
14
	}
16
**
15
	/**
17
	 * Gets the attributes of the LDAPSampler object
16
	 * method returns the provider url for jndi to connect to
18
	 * 
17
	 * 
19
	 * @return The attributes
18
	 * @return the 
20
	 *************************************************************************
19
provider URL
21
*/
20
	 */
22
	public String getAttrs() {
21
	public String getProviderUrl() {
23
		return getPropertyAsString(ATTRIBS);
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