String getMessageChoice() { return getPropertyAsString(MESSAGE_CHOICE); } /** * set the input file for the publisher * * @param file */ public void setInputFile(String file) { setProperty(INPUT_FILE, file); } /** * return the path of the input file * */ public String getInputFile() { return getPropertyAsString(INPUT_FILE);
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/jms/sampler/PublisherSampler.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
String getMessageChoice() {
1
String getXmlData() {
2
		return getPropertyAsString(MESSAGE_CHOICE);
2
		return getPropertyAsString(XML_DATA);
3
	}
3
	}
4
	/**
4
    /**
5
	 * set the input file for the publisher
6
	 * 
7
	
5
     * it's kinda obvious, but we state it anyways. Set the xml file with a
6
     * string path.
7
     *
8
 * @param file
8
     * @param file
9
	
9
name
10
 */
10
     */
11
	public void setInputFile(String file) {
11
    public void setXmlFile(String filename) {
12
		setProperty(INPUT_FILE, file);
12
        setProperty(XML_DATA_FILE, file
13
	
13
name);
14
}
14
    }
15
	/**
15
    /**
16
	 * return the path of the input file
16
     * Get the file location of the xml file.
17
	 * 
18
	
17
     *
18
     * @return String file path.
19
 */
19
     */
20
	public String getInputFile() {
20
    public String getXmlFile() {
21
		return getPropertyAsString(INPUT_FILE);
21
        return getPropertyAsString(XML_DATA_FILE);
22
	
22
    
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