void setFilename(String newFilename) { this.setProperty(FILENAME, newFilename); } public String getFilename() { return getPropertyAsString(FILENAME); } public void setRequestData(String newRequestData) { this.setProperty(REQUEST, newRequestData); } public String getRequestData() { return getPropertyAsString(REQUEST); }
void setXmlData(String data) { setProperty(XML_DATA, data); } public String getXmlData() { return getPropertyAsString(XML_DATA); } /** * it's kinda obvious, but we state it anyways. Set the xml file with a * string path. * * @param filename */ public void setXmlFile(String filename) { setProperty(XML_DATA_FILE, filename); } /** * Get the file location of the xml file. * * @return String file path. */ public String getXmlFile() { return getPropertyAsString(XML_DATA_FILE); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/SoapSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setFilename(String newFilename) {
1
void setXmlData(String data) {
2
		this.setProperty(FILENAME, newFilename);
2
		setProperty(XML_DATA, data);
3
	}
3
	}
4
	public String getFilename() {
4
	public String getXmlData() {
5
		return getPropertyAsString(FILENAME);
5
		return getPropertyAsString(XML_DATA);
6
	}
6
	}
7
	public void setReque
7
    /**
8
stData(String newRequestData) {
8
     * it's kinda obvious, but we stat
9
		this.setProperty(REQUEST, newRequestData);
10
	}
11
	public String getRequestData() {
12
		
9
e it anyways. Set the xml file with a
10
     * string path.
11
     *
12
     * @param filename
13
     */
14
    public void setXmlFile(String filename) {
15
        setProperty(XML_DATA_FILE, filename);
16
    }
17
    /**
18
     * Get the file location of the xml file.
19
     *
20
     * @return String file path.
21
     */
22
    public String getXmlFile() {
13
return getPropertyAsString(REQUEST);
23
        return getPropertyAsString(
14
	
24
XML_DATA_FILE);
15
}
25
    }
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