String getUsername() { return getPropertyAsString(PRINCIPAL); } /** * Set the password to login to the jms server * * @param pwd */ public void setPassword(String pwd) { setProperty(CREDENTIALS, pwd); } /** * return the password used to login to the jms server * * @return the password used to login to the jms server */ public String getPassword() { return getPropertyAsString(CREDENTIALS); }
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); }
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
String getUsername() {
1
String getClassname()
2
		
2
    {
3
return getPropertyAsString(PRINCIPAL);
3
        return getPropertyAsString(
4
	}
5
	
4
CLASSNAME);
5
    }
6
    
6
/**
7
    /**
7
	 * Set the password to login to the jms server
8
     * Set the 
8
	 * 
9
	 * @param pwd
10
	
9
string label used to create an instance of the
10
     * test with the string constructor.
11
     * @param constr
11
 */
12
     */
12
	public void setPassword(String pwd) {
13
    public void set
13
		setProperty(CREDENTIALS, pwd);
14
	}
15
	/**
16
	 * return the password used to login to the jms server
17
	 * 
18
	 * @return the password used to login to the jms server
19
	
14
ConstructorString(String constr)
15
    {
16
        setProperty(CONSTRUCTORSTRING,constr);
17
    }
18
    
19
    /**
20
     * get the string passed to the string constructor
20
 */
21
     */
21
	public String getPassword() {
22
    public String get
22
		
23
ConstructorString()
24
    {
23
return getPropertyAsString(CREDENTIALS);
25
        return getPropertyAsString(C
24
	
26
ONSTRUCTORSTRING);
25
}
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