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 getRefName() { return getPropertyAsString(REFNAME); } public void setDefaultValue(String val) { setProperty(DEFAULT, val); } public String getDefaultValue() { return getPropertyAsString(DEFAULT); }
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/org/apache/jmeter/extractor/XPathExtractor.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getUsername() {
1
String getRefName() {
2
		return getPropertyAsString(PRINCIPAL);
2
		return getPropertyAsString(
3
	}
4
	/**
5
	 * Set the password to login to the jms server
6
	 * 
7
	 * @param pwd
8
	 */
9
	
3
REFNAME);
4
	}
5
    
10
public void setPassword(String pwd) {
6
    public void setDefaultValue(String val) {
11
		setProperty(CREDENTIALS, pwd);
7
		setProperty(
12
	}
13
	/**
14
	 * return the password used to login to the jms server
15
	 * 
16
	 * @return the password used to login to the jms server
17
	 */
8
DEFAULT, val);
9
	}
18
	public String getPassword() {
10
	public String getDefaultValue() {
19
		return getPropertyAsString(CREDENTIALS);
11
		return getPropertyAsString(DEFAULT);
20
	}
12
	}
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