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); } /** * get the string passed to the string constructor */ public String getConstructorString() { return getPropertyAsString(CONSTRUCTORSTRING);
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); } /** * 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/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.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 setClassname(String classname)
1
void set
2
    {
3
        setProperty(CLASSNAME, classname);
4
    
2
JNDIIntialContextFactory(String icf) {
3
		setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);
5
}
4
	}
6
    /**
5
	/**
7
     * Gets the Classname attribute of the JavaConfig object
8
     *
9
    
6
	 * method returns the initial context factory for jndi initial context
7
	 * lookup.
8
	 * 
10
 * @return  the Classname value
9
	 * @return the 
11
    
10
initial context factory 
12
 */
11
	 */
13
    public String getClassname()
12
	public String get
14
    {
15
        return getPropertyAsString(CLASSNAME);
16
    }
17
    
18
    
13
JNDIInitialContextFactory() {
14
		return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);
15
	}
19
/**
16
	/**
20
     * Set the string label used to create an instance of the
17
	 * set the 
21
     * test with the string constructor.
22
     * @param constr
23
    
18
provider user for jndi
19
	 * 
20
	 * @param url the provider URL
24
 */
21
	 */
25
    public void setConstructorString(String constr)
22
	public void set
26
    {
27
        setProperty(CONSTRUCTORSTRING,constr);
28
    }
29
    
30
    
23
ProviderUrl(String url) {
24
		setProperty(PROVIDER_URL, url);
25
	}
31
/**
26
	/**
32
     * get the string passed to the string constructor
27
	 * method returns the provider url for jndi to connect to
33
    
28
	 * 
29
	 * @return the provider URL
34
 */
30
	 */
35
    public String getConstructorString()
31
	public String get
36
    {
37
        
32
ProviderUrl() {
38
return getPropertyAsString(CONSTRUCTORSTRING);
33
		return getPropertyAsString(
39
    
34
PROVIDER_URL);
35
	
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