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);
String getPassword() { return getPropertyAsString(ConfigTestElement.PASSWORD); } public void setServer(String newServer) { this.setProperty(SERVER, newServer); } public String getServer() { return getPropertyAsString(SERVER);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/BaseJMSSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ftp/sampler/FTPSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getJNDIInitialContextFactory() {
1
String getPassword() {
2
		return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);
2
		return getPropertyAsString(
3
	}
4
	/**
5
	 * set the provider user for jndi
6
	 * 
7
	 * @param url the provider URL
8
	 */
9
	public void setProviderUrl(String url
3
ConfigTestElement.PASSWORD);
4
	}
10
) {
5
	public void setServer(String newServer) {
11
		setProperty(PROVIDER_URL, url);
6
		this.setProperty(
12
	}
13
	/**
14
	 * method returns the provider url for jndi to connect to
15
	 * 
16
	 * @return the provider URL
17
	 */
7
SERVER, newServer);
8
	}
18
	public String getProviderUrl() {
9
	public String getServer() {
19
		return getPropertyAsString(PROVIDER_URL);
10
		return getPropertyAsString(SERVER);
20
	
11
	
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