void setUseAuth(String auth) { setProperty(USE_AUTH, auth); } /** * return whether jndi requires authentication * * @return whether jndi requires authentication */ public String getUseAuth() { return getPropertyAsString(USE_AUTH); } /** * set whether the sampler should read the response or not * * @param read whether the sampler should read the response or not */ public void setReadResponse(String read) { setProperty(READ_RESPONSE, read); }
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 setUseAuth(String auth) {
1
void set
2
		setProperty(USE_AUTH, auth);
3
	
2
Classname(String classname)
3
    {
4
        setProperty(CLASSNAME, classname);
4
}
5
    }
5
	/**
6
    /**
6
	 * return whether jndi requires authentication
7
     * Get
7
	 * 
8
	
8
s the Classname attribute of the JavaConfig object
9
     *
9
 * @return whether jndi requires authentication
10
     * @return 
10
	
11
 the Classname value
11
 */
12
     */
12
	public String getUseAuth() {
13
    public String get
13
		return getPropertyAsString(USE_AUTH);
14
	}
15
	
14
Classname()
15
    {
16
        return getPropertyAsString(CLASSNAME);
17
    }
18
    
16
/**
19
    /**
17
	 * set whether the sampler should read the response or not
20
     * Set 
18
	 * 
19
	 * @param read whether the sampler should read the response or not
20
	
21
the string label used to create an instance of the
22
     * test with the string constructor.
23
     * @param constr
21
 */
24
     */
22
	public void setReadResponse(String read) {
25
    public void set
23
		setProperty(READ_RESPONSE, read);
24
	
26
ConstructorString(String constr)
27
    {
28
        setProperty(CONSTRUCTORSTRING,constr);
25
}
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