void setVarName(String name) { setProperty(VAR_NAME, name); } public String getVarName() { return getPropertyAsString(VAR_NAME); } public void setFormat(String format) { setProperty(FORMAT, format); }
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); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/modifiers/CounterConfig.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 setVarName(String name) {
1
void setConnectionFactory(String factory) {
2
		setProperty(VAR_NAME, name);
2
		setProperty(
3
	}
3
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 getVarName() {
11
	public String getConnectionFactory() {
5
		return getPropertyAsString(VAR_NAME);
12
		return getPropertyAsString(
6
	}
7
    
13
CONN_FACTORY);
14
	}
15
	/**
16
	 * set the topic
17
	 * 
18
	 * @param topic
19
	 */
8
public void setFormat(String format) {
20
	public void setTopic(String 
9
        setProperty(FORMAT, format);
10
    
21
topic) {
22
		setProperty(TOPIC, topic);
11
}
23
	}
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