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); }
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); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/sampler/SoapSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getXmlData() {
1
String getMessageChoice() {
2
		return getPropertyAsString(XML_DATA);
2
		return getPropertyAsString(MESSAGE_CHOICE);
3
	}
3
	}
4
    /**
4
	/**
5
     * it's kinda obvious, but we state it anyways. Set the xml file with a
6
     * string path.
7
    
5
	 * set the input file for the publisher
8
 *
6
	 * 
9
     * @param filename
7
	 * @param file
10
    
11
 */
8
	 */
12
    public void setXmlFile(String filename) {
9
	public void setInputFile(String file) {
13
        setProperty(XML_DATA_FILE, filename);
10
		setProperty(INPUT_FILE, file
14
    
11
);
15
}
12
	}
16
    /**
13
	/**
17
     * Get the file location of the xml file.
14
	 * return the 
18
     *
19
     * @return String file path.
20
    
15
path of the input file
16
	 * 
21
 */
17
	 */
22
    public String getXmlFile() {
18
	public String getInputFile() {
23
        return getPropertyAsString(XML_DATA_FILE);
19
		return getPropertyAsString(INPUT_FILE);
24
    }
20
	}
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