void setJNDIIntialContextFactory(String icf) { setProperty(JNDI_INITIAL_CONTEXT_FAC, icf); } /** * method returns the initial context factory for jndi initial context * lookup. * * @return the initial context factory */ public 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); }
void setRandomPath(String path) { setProperty(RANDOM_PATH, path); } /** * return the random path for messages * */ public String getRandomPath() { return getPropertyAsString(RANDOM_PATH); } /** * set the text for the message * * @param message */ public void setTextMessage(String message) { setProperty(TEXT_MSG, message); } /** * return the text for the message * */ public String getTextMessage() { return getPropertyAsString(TEXT_MSG); }
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/jms/sampler/PublisherSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setJNDIIntialContextFactory(String icf) {
1
void setRandomPath(String path) {
2
		setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);
2
		setProperty(RANDOM_PATH, path);
3
	}
3
	}
4
	/**
4
	/**
5
	 * method returns the initial context factory for jndi initial context
5
	 * return the 
6
	 * lookup.
7
	 * 
8
	 * @return the initial context factory 
9
	 */
10
	public String getJNDIInitialContextFactory
6
random path for messages
7
	 * 
8
	 */
11
() {
9
	public String getRandomPath() {
12
		return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);
10
		return getPropertyAsString(RANDOM_PATH);
13
	}
11
	}
14
	/**
12
	/**
15
	 * set the provider user for jndi
13
	 * set the 
16
	 * 
17
	 * @param url the provider URL
14
text for the message
15
	 * 
16
	 * @param message
18
	 */
17
	 */
19
	public void setProviderUrl(String url) {
18
	public void setTextMessage(String message) {
20
		setProperty(PROVIDER_URL, url);
19
		setProperty(TEXT_MSG, message);
21
	}
20
	}
22
	/**
21
	/**
23
	 * method returns the provider url for jndi to connect to
22
	 * return the 
24
	 * 
25
	 * @return the provider URL
23
text for the message
24
	 * 
26
	 */
25
	 */
27
	public String getProviderUrl() {
26
	public String getTextMessage() {
28
		return getPropertyAsString(PROVIDER_URL);
27
		return getPropertyAsString(TEXT_MSG);
29
	}
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