void setDomain(String domain) { setProperty(DOMAIN, domain); } public synchronized String getRealm() { return getPropertyAsString(REALM); } public synchronized void setRealm(String realm) { setProperty(REALM, realm); }
void setParameters(String newScript) { this.setProperty(PARAMETERS, newScript); } public String getScriptLanguage() { return this.getPropertyAsString(LANGUAGE); } public void setScriptLanguage(String lang) { this.setProperty(LANGUAGE, lang); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/Authorization.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/sampler/BSFSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setDomain(String domain) {
1
void setParameters(String newScript) {
2
		setProperty(DOMAIN, domain);
2
		this.setProperty(
3
	}
4
	public synchronized String getRealm
3
PARAMETERS, newScript);
4
	}
5
() {
5
	public String getScriptLanguage() {
6
		return getPropertyAsString(REALM);
6
		return this.getPropertyAsString(LANGUAGE);
7
	}
7
	}
8
	public synchronized void setRealm(String realm) {
8
	public void setScriptLanguage(String lang) {
9
		setProperty(REALM, realm);
9
		this.setProperty(LANGUAGE, lang);
10
	}
10
	}
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