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); } /** * set the connection factory for * * @param factory */ public void setConnectionFactory(String factory) { setProperty(CONN_FACTORY, factory); } /** * return the connection factory parameter used to lookup the connection * factory from the JMS server * * @return the connection factory */ public String getConnectionFactory() { return getPropertyAsString(CONN_FACTORY); }
void setRefName(String refName) { setProperty(REFNAME, refName); } public String getRefName() { return getPropertyAsString(REFNAME); } public void setDefaultValue(String val) { setProperty(DEFAULT, val); } public String getDefaultValue() { return getPropertyAsString(DEFAULT); }
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/extractor/XPathExtractor.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setProviderUrl(String url) {
1
void setRefName(String refName) {
2
		setProperty(PROVIDER_URL, url);
2
		setProperty(
3
	}
4
	/**
5
	 * method returns the provider url for jndi to connect to
6
	 * 
7
	 * @return the provider URL
8
	 */
3
REFNAME, refName);
4
	}
9
	public String getProviderUrl() {
5
	public String getRefName() {
10
		return getPropertyAsString(PROVIDER_URL);
6
		return getPropertyAsString(
11
	}
12
	/**
13
	 * set the connection factory for
14
	 * 
15
	 * @param factory
16
	 */
17
	public void setConnectionFactory
7
REFNAME);
8
	}
9
    
18
(String factory) {
10
    public void setDefaultValue(String val) {
19
		setProperty(CONN_FACTORY, factory);
11
		setProperty(
20
	}
21
	/**
22
	 * return the connection factory parameter used to lookup the connection
23
	 * factory from the JMS server
24
	 * 
25
	 * @return the connection factory
26
	 */
27
	public String getConnectionFactory
12
DEFAULT, val);
13
	}
28
() {
14
	public String getDefaultValue() {
29
		return getPropertyAsString(CONN_FACTORY);
15
		return getPropertyAsString(DEFAULT);
30
	}
16
	}
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