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