void setRefName(String refName) { setProperty(REFNAME, refName); } public String getRefName() { return getPropertyAsString(REFNAME); } public void setDefaultValue(String val) { setProperty(DEFAULT, val); } public String getDefaultValue() { return getPropertyAsString(DEFAULT); }
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/extractor/XPathExtractor.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 setRefName(String refName) {
1
void setXmlData(String data) {
2
		setProperty(REFNAME, refName);
2
		setProperty(XML_DATA, data);
3
	}
3
	}
4
	public String getRefName() {
4
	public String getXmlData() {
5
		return getPropertyAsString(REFNAME);
5
		return getPropertyAsString(XML_DATA);
6
	}
6
	}
7
    
7
    /**
8
     * it's kinda obvious, but we state it anyways. Set the xml file with a
9
     * string path.
10
     *
11
     * @param filename
12
     */
8
    public void setDefaultValue(String val) {
13
    public void set
9
		setProperty(DEFAULT, val);
10
	}
11
	public String getDefaultValue() {
12
		
14
XmlFile(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(DEFAULT);
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