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); } /** * get the string passed to the string constructor */ public String getConstructorString() { return getPropertyAsString(CONSTRUCTORSTRING);
void setTopic(String topic) { setProperty(TOPIC, topic); } /** * return the topic used for the benchmark * * @return the topic */ public String getTopic() { return getPropertyAsString(TOPIC); } /** * set the username to login into the jms server if needed * * @param user */ public void setUsername(String user) { setProperty(PRINCIPAL, user); } /** * return the username used to login to the jms server * * @return the username used to login to the jms server */ public String getUsername() { return getPropertyAsString(PRINCIPAL);
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 set
2
    {
3
        setProperty(CLASSNAME, classname);
4
    
2
Topic(String topic) {
3
		setProperty(TOPIC, topic);
5
}
4
	}
6
    /**
5
	/**
7
     * Gets the Classname attribute of the JavaConfig object
6
	 * return the 
8
     *
9
    
7
topic used for the benchmark
8
	 * 
10
 * @return  the Classname value
9
	 * @return the 
11
    
10
topic
12
 */
11
	 */
13
    public String getClassname()
12
	public String get
14
    {
15
        return getPropertyAsString(CLASSNAME);
16
    }
17
    
18
    
13
Topic() {
14
		return getPropertyAsString(TOPIC);
15
	}
19
/**
16
	/**
20
     * Set the string label used to create an instance of the
17
	 * set the 
21
     * test with the string constructor.
22
     * @param constr
23
    
18
username to login into the jms server if needed
19
	 * 
20
	 * @param user
24
 */
21
	 */
25
    public void setConstructorString(String constr)
22
	public void set
26
    {
27
        setProperty(CONSTRUCTORSTRING,constr);
28
    }
29
    
30
    
23
Username(String user) {
24
		setProperty(PRINCIPAL, user);
25
	}
31
/**
26
	/**
32
     * get the string passed to the string constructor
27
	 * return the 
33
    
28
username used to login to the jms server
29
	 * 
30
	 * @return the username used to login to the jms server
34
 */
31
	 */
35
    public String getConstructorString()
32
	public String get
36
    {
37
        
33
Username() {
38
return getPropertyAsString(CONSTRUCTORSTRING);
34
		return getPropertyAsString(
39
    
35
PRINCIPAL);
36
	
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