void setJNDIIntialContextFactory(String icf) { setProperty(JNDI_INITIAL_CONTEXT_FAC, icf); } /** * method returns the initial context factory for jndi initial context * lookup. * * @return the initial context factory */ public 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); }
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 setJNDIIntialContextFactory(String icf) {
1
void set
2
		setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);
3
	
2
Classname(String classname)
3
    {
4
        setProperty(CLASSNAME, classname);
4
}
5
    }
5
	/**
6
    /**
6
	 * method returns the initial context factory for jndi initial context
7
	 * lookup.
8
	 * 
9
	
7
     * Gets the Classname attribute of the JavaConfig object
8
     *
10
 * @return the initial context factory 
9
     * @return  the 
11
	
10
Classname value
12
 */
11
     */
13
	public String getJNDIInitialContextFactory() {
12
    public String get
14
		return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);
15
	}
16
	
13
Classname()
14
    {
15
        return getPropertyAsString(CLASSNAME);
16
    }
17
    
17
/**
18
    /**
18
	 * set the provider user for jndi
19
     * Set the 
19
	 * 
20
	 * @param url the provider URL
21
	
20
string label used to create an instance of the
21
     * test with the string constructor.
22
     * @param constr
22
 */
23
     */
23
	public void setProviderUrl(String url) {
24
    public void set
24
		setProperty(PROVIDER_URL, url);
25
	
25
ConstructorString(String constr)
26
    {
27
        setProperty(CONSTRUCTORSTRING,constr);
26
}
28
    }
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