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); } /** * set the topic * * @param topic */ public void setTopic(String topic) { setProperty(TOPIC, topic); } /** * return the topic used for the benchmark * * @return the topic */ public String getTopic() { return getPropertyAsString(TOPIC);
void setDefaultValue(String defaultValue) { setProperty(DEFAULT, defaultValue); } public String getDefaultValue() { return getPropertyAsString(DEFAULT); } public void setTemplate(String template) { setProperty(TEMPLATE, template); } public String getTemplate() { return getPropertyAsString(TEMPLATE);
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/RegexExtractor.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setConnectionFactory(String factory) {
1
void set
2
		setProperty(CONN_FACTORY, factory);
3
	}
4
	/**
5
	 * return the connection factory parameter used to lookup the connection
6
	 * factory from the JMS server
7
	 * 
8
	 * @return the connection factory
9
	 */
2
DefaultValue(String defaultValue) {
3
		setProperty(DEFAULT, defaultValue);
4
	}
10
	public String getConnectionFactory() {
5
	public String getDefaultValue() {
11
		return getPropertyAsString(CONN_FACTORY);
6
		return getPropertyAsString(
12
	}
13
	/**
14
	 * set the topic
15
	 * 
16
	 * @param topic
17
	 */
7
DEFAULT);
8
	}
18
	public void setTopic(String topic) {
9
	public void setTemplate(String template) {
19
		setProperty(TOPIC, topic);
10
		setProperty(T
20
	}
21
	/**
22
	 * return the topic used for the benchmark
23
	 * 
24
	 * @return the topic
25
	 */
11
EMPLATE, template);
12
	}
26
	public String getTopic() {
13
	public String getTemplate() {
27
		return getPropertyAsString(TOPIC);
14
		return getPropertyAsString(TEMPLATE);
28
	
15
	
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