String getName() { return getPropertyAsString(HNAME); } /** * Set the name for this object. */ public synchronized 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);
String getFilename() { return getPropertyAsString(FILENAME); } public void setFilename(String newFilename) { this.setProperty(FILENAME, newFilename); } public String getScript() { return this.getPropertyAsString(SCRIPT); } public void setScript(String newScript) { this.setProperty(SCRIPT, newScript);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/Header.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
String getName() {
1
String getFilename() {
2
		return getPropertyAsString(HNAME);
2
		return getPropertyAsString(FILENAME);
3
	}
3
	}
4
	/**
4
	
5
	 * Set the name for this object.
6
	 */
7
	public synchronized void setName(String name) {
5
public void setFilename(String newFilename) {
8
		this.setProperty(HNAME, name);
6
		this.setProperty(FILENAME, newFilename);
9
	}
7
	}
10
	/**
8
	
11
	 * Get the value for this object.
12
	 */
13
	public synchronized String getValue() {
9
public String getScript() {
14
		return getPropertyAsString(VALUE);
10
		return this.getPropertyAsString(SCRIPT);
15
	}
11
	}
16
	/**
12
	
17
	 * Set the value for this object.
18
	 */
19
	public synchronized void setValue(String value) {
13
public void setScript(String newScript) {
20
		this.setProperty(VALUE, value);
14
		this.setProperty(SCRIPT, newScript);
21
	
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