void setMessageChoice(String choice) { setProperty(MESSAGE_CHOICE, choice); } /** * return the source of the message * */ public String getMessageChoice() { return getPropertyAsString(MESSAGE_CHOICE); } /** * set the input file for the publisher * * @param file */ public void setInputFile(String file) { setProperty(INPUT_FILE, file); } /** * return the path of the input file * */ public String getInputFile() { return getPropertyAsString(INPUT_FILE);
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/protocol/jms/sampler/PublisherSampler.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 setMessageChoice(String choice) {
1
void setProviderUrl(String url) {
2
		setProperty(MESSAGE_CHOICE, choice);
2
		setProperty(PROVIDER_URL, url);
3
	}
3
	}
4
	/**
4
	/**
5
	 * return the source of the message
5
	 * method returns the 
6
	 * 
6
provider url for jndi to connect to
7
	 * 
8
	 * @return the provider URL
7
	 */
9
	 */
8
	public String getMessageChoice() {
10
	public String getProviderUrl() {
9
		return getPropertyAsString(MESSAGE_CHOICE);
11
		return getPropertyAsString(PROVIDER_URL);
10
	}
12
	}
11
	/**
13
	/**
12
	 * set the input file for the publisher
14
	 * set the connection factory for
13
	 * 
15
	 * 
14
	 * @param file
16
	 * @param factory
15
	 */
17
	 */
16
	public void setInputFile(String file) {
18
	public void setConnectionFactory(String factory) {
17
		setProperty(INPUT_FILE, file);
19
		setProperty(CONN_FACTORY, factory);
18
	}
20
	}
19
	/**
21
	/**
20
	 * return the path of the input file
22
	 * return the 
21
	 * 
23
connection factory parameter used to lookup the connection
24
	 * factory from the JMS server
25
	 * 
26
	 * @return the connection factory
22
	 */
27
	 */
23
	public String getInputFile() {
28
	public String getConnectionFactory() {
24
		return getPropertyAsString(INPUT_FILE);
29
		return getPropertyAsString(CONN_FACTORY);
25
	
30
	
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