void setValue(String value) { this.setProperty(VALUE, value); } /** * get the domain for this object. */ public synchronized String getDomain() { return getPropertyAsString(DOMAIN); } /** * set the domain for this object. */ public synchronized void setDomain(String domain) { setProperty(DOMAIN, domain); }
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/Cookie.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 setValue(String value) {
1
void set
2
		this.setProperty(VALUE, value);
3
	}
4
	/**
5
	 * get the domain for this object.
6
	 */
7
	public synchronized String getDomain
2
Parameters(String newScript) {
3
		this.setProperty(PARAMETERS, newScript);
4
	}
8
() {
5
	public String getScriptLanguage() {
9
		return getPropertyAsString(DOMAIN);
6
		return this.getPropertyAsString(LANGUAGE);
10
	}
7
	}
11
	/**
8
	
12
	 * set the domain for this object.
13
	 */
14
	public synchronized void setDomain(String domain) {
9
public void setScriptLanguage(String lang) {
15
		setProperty(DOMAIN, domain);
10
		this.setProperty(LANGUAGE, lang);
16
	}
11
	}
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