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 getJNDIInitialContextFactory() { return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC); } /** * set the provider user for jndi * * @param url the provider URL */ public 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); }
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
String getXmlData() {
1
String getJNDIInitialContextFactory() {
2
		return getPropertyAsString(XML_DATA);
2
		return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);
3
	}
3
	}
4
    /**
4
	/**
5
     * it's kinda obvious, but we state it anyways. Set the xml file with a
6
     * string path.
7
     *
8
     * @param filename
9
    
5
	 * set the provider user for jndi
6
	 * 
7
	 * @param url the provider URL
10
 */
8
	 */
11
    public void setXmlFile(String filename) {
9
	public void set
12
        setProperty(XML_DATA_FILE, filename);
13
    
10
ProviderUrl(String url) {
11
		setProperty(PROVIDER_URL, url);
14
}
12
	}
15
    /**
13
	/**
16
     * Get the file location of the xml file.
14
	 * met
17
    
15
hod returns the provider url for jndi to connect to
18
 *
16
	 * 
19
     * @return String file path.
17
	 * @return 
20
    
18
the provider URL
21
 */
19
	 */
22
    public String getXmlFile() {
20
	public String get
23
        
21
ProviderUrl() {
24
return getPropertyAsString(XML_DATA_FILE);
22
		return getPropertyAsString(
25
    
23
PROVIDER_URL);
26
}
24
	}
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