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); }
void setClassname(String classname) { setProperty(CLASSNAME, classname); } /** * Gets the Classname attribute of the JavaConfig object * * @return the Classname value */ public String getClassname() { return getPropertyAsString(CLASSNAME); } /** * Set the string label used to create an instance of the * test with the string constructor. * @param constr */ public void setConstructorString(String constr) { setProperty(CONSTRUCTORSTRING,constr); }
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/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setConnectionFactory(String factory) {
1
void setC
2
		setProperty(CONN_FACTORY, factory);
3
	
2
lassname(String classname)
3
    {
4
        setProperty(CLASSNAME, classname);
4
}
5
    }
5
	/**
6
    /**
6
	 * return the connection factory parameter used to lookup the connection
7
     * Gets the 
7
	 * factory from the JMS server
8
	 * 
9
	
8
Classname attribute of the JavaConfig object
9
     *
10
 * @return the connection factory
10
     * @return  the 
11
	
11
Classname value
12
 */
12
     */
13
	public String getConnectionFactory() {
13
    public String getC
14
		
14
lassname()
15
    {
15
return getPropertyAsString(CONN_FACTORY);
16
        return getPropertyAsString(C
16
	}
17
	
17
LASSNAME);
18
    }
19
    
18
/**
20
    /**
19
	 * set the topic
21
     * Set the 
20
	 * 
21
	 * @param topic
22
	
22
string label used to create an instance of the
23
     * test with the string constructor.
24
     * @param constr
23
 */
25
     */
24
	public void setTopic(String topic) {
26
    public void set
25
		setProperty(TOPIC, topic);
26
	
27
ConstructorString(String constr)
28
    {
29
        setProperty(CONSTRUCTORSTRING,constr);
27
}
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