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