void setRegex(String regex) { setProperty(REGEX, regex); } public String getRegex() { return getPropertyAsString(REGEX); } public void setRefName(String refName) { setProperty(REFNAME, refName); } public String getRefName() { return getPropertyAsString(REFNAME);
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);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/RegexExtractor.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
void setRegex(String regex) {
1
void setProviderUrl(String url) {
2
		setProperty(REGEX, regex);
2
		setProperty(
3
	}
3
PROVIDER_URL, url);
4
	}
5
	/**
6
	 * method returns the provider url for jndi to connect to
7
	 * 
8
	 * @return the provider URL
9
	 */
4
	public String getRegex() {
10
	public String getProviderUrl() {
5
		return getPropertyAsString(REGEX);
11
		return getPropertyAsString(
6
	}
7
	public void setRefName
12
PROVIDER_URL);
13
	}
14
	/**
15
	 * set the connection factory for
16
	 * 
17
	 * @param factory
18
	 */
8
(String refName) {
19
	public void setConnectionFactory(String factory) {
9
		setProperty(REFNAME, refName);
20
		setProperty(
10
	}
21
CONN_FACTORY, factory);
22
	}
23
	/**
24
	 * return the connection factory parameter used to lookup the connection
25
	 * factory from the JMS server
26
	 * 
27
	 * @return the connection factory
28
	 */
11
	public String getRefName() {
29
	public String getConnectionFactory() {
12
		return getPropertyAsString(REFNAME);
30
		return getPropertyAsString(CONN_FACTORY);
13
	
31
	
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