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);
void setClassname(String classname) { setProperty(CLASSNAME, classname); } /** * Gets the Classname attribute of the JavaConfig object * * @return the Classname value */ public String getClassname() { return getPropertyAsString(CLASSNAME); } /** * Set the string label used to create an instance of the * test with the string constructor. * @param constr */ public void setConstructorString(String constr) { setProperty(CONSTRUCTORSTRING,constr);
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/BaseJMSSampler.java File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setProviderUrl(String url) {
1
void set
2
		setProperty(PROVIDER_URL, url);
3
	
2
Classname(String classname)
3
    {
4
        setProperty(CLASSNAME, classname);
4
}
5
    }
5
	/**
6
    /**
6
	 * method returns the provider url for jndi to connect to
7
     * Get
7
	 * 
8
	
8
s the Classname attribute of the JavaConfig object
9
     *
9
 * @return the provider URL
10
     * @return  the 
10
	
11
Classname value
11
 */
12
     */
12
	public String getProviderUrl() {
13
    public String get
13
		return getPropertyAsString(PROVIDER_URL);
14
	}
15
	
14
Classname()
15
    {
16
        return getPropertyAsString(CLASSNAME);
17
    }
18
    
16
/**
19
    /**
17
	 * set the connection factory f
20
     * Set the string label used to create an instance of the
18
or
21
     * test with the string constructor.
19
	 * 
20
	 * @param factory
22
     * @param 
21
	
23
constr
22
 */
24
     */
23
	public void setConnectionFactory(String factory) {
25
    public void setCon
24
		setProperty(CONN_FACTORY, factory);
25
	
26
structorString(String constr)
27
    {
28
        setProperty(CONSTRUCTORSTRING,constr);
29
    
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