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 setName(String name) { this.setProperty(HNAME, name); } /** * Get the value for this object. */ public synchronized String getValue() { return getPropertyAsString(VALUE); } /** * Set the value for this object. */ public synchronized void setValue(String value) { this.setProperty(VALUE, value); }
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/http/control/Header.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setValue(String value) {
1
void setName(String name) {
2
		this.setProperty(VALUE, value);
2
		this.setProperty(HNAME, name);
3
	}
3
	}
4
	/**
4
	/**
5
	 * get the domain for this object.
5
	 * Get the value for this object.
6
	 */
6
	 */
7
	public synchronized String getDomain() {
7
	public synchronized String getValue() {
8
		return getPropertyAsString(DOMAIN);
8
		return getPropertyAsString(VALUE);
9
	}
9
	}
10
	/**
10
	/**
11
	 * set the domain for this object.
11
	 * Set the value for this object.
12
	 */
12
	 */
13
	public synchronized void setDomain(String domain) {
13
	public synchronized void setValue(String value) {
14
		setProperty(DOMAIN, domain);
14
		this.setProperty(VALUE, value);
15
	}
15
	}
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