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);
void setProviderUrl(String url) { setProperty(PROVIDER_URL, url); } /** * method returns the provider url for jndi to connect to * * @return the provider URL */ public String getProviderUrl() { return getPropertyAsString(PROVIDER_URL); } /** * set the connection factory for * * @param factory */ public void setConnectionFactory(String factory) { setProperty(CONN_FACTORY, factory); } /** * return the connection factory parameter used to lookup the connection * factory from the JMS server * * @return the connection factory */ public String getConnectionFactory() { return getPropertyAsString(CONN_FACTORY);
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/BaseJMSSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setXmlData(String data) {
1
void setProviderUrl(String url) {
2
		setProperty(XML_DATA, data);
2
		setProperty(
3
	}
3
PROVIDER_URL, url);
4
	}
5
	/**
6
	 * method returns the provider url for jndi to connect to
7
	 * 
8
	 * @return the provider URL
9
	 */
4
	public String getXmlData() {
10
	public String getProviderUrl() {
5
		return getPropertyAsString(XML_DATA);
11
		return getPropertyAsString(PROVIDER_URL);
6
	}
12
	}
7
    /**
13
	/**
8
     * it's kinda obvious, but we state it anyways. Set the xml file with a
9
     * string path.
10
     *
11
     * @param filename
12
    
14
	 * set the connection factory for
15
	 * 
16
	 * @param factory
13
 */
17
	 */
14
    public void setXmlFile(String filename) {
18
	public void set
15
        setProperty(XML_DATA_FILE, filename);
16
    
19
ConnectionFactory(String factory) {
20
		setProperty(CONN_FACTORY, factory);
17
}
21
	}
18
    /**
22
	/**
19
     * Get the file location of the xml file.
23
	 * return the 
20
     *
21
     * @return String file path.
22
    
24
connection factory parameter used to lookup the connection
25
	 * factory from the JMS server
26
	 * 
27
	 * @return the connection factory
23
 */
28
	 */
24
    public String getXmlFile() {
29
	public String get
25
        
30
ConnectionFactory() {
26
return getPropertyAsString(XML_DATA_FILE);
31
		return getPropertyAsString(
27
    
32
CONN_FACTORY);
33
	
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