String getPort() { return getPropertyAsString(PORT); } /** * Sets the Rootdn attribute of the LDAPSampler object. * * @param newRootdn * the new rootdn value */ public void setRootdn(String newRootdn) { this.setProperty(ROOTDN, newRootdn); } /** * Gets the Rootdn attribute of the LDAPSampler object. * * @return the Rootdn value */ public String getRootdn() { return getPropertyAsString(ROOTDN); }
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); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/ldap/sampler/LDAPSampler.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
String getPort() {
1
String get
2
		return getPropertyAsString(PORT);
3
	}
4
	
2
Classname()
3
    {
4
        return getPropertyAsString(CLASSNAME);
5
    }
6
    
5
/**
7
    /**
6
	 * Sets the Rootdn attribute of the LDAPSampler object.
8
     * Set the 
7
	 * 
8
	 * @param newRootdn
9
	 *            the new rootdn value
10
	 */
11
	public void setRootdn(String newRootdn) {
12
		this.setProperty(ROOTDN, newRootdn);
13
	}
14
	
9
string label used to create an instance of the
10
     * test with the string constructor.
11
     * @param constr
12
     */
13
    public void setConstructorString(String constr)
14
    {
15
        setProperty(CONSTRUCTORSTRING,constr);
16
    }
17
    
15
/**
18
    /**
16
	 * Gets the Rootdn attribute of the LDAPSampler object.
19
     * get the 
17
	 * 
18
	 * @return the Rootdn value
19
	
20
string passed to the string constructor
20
 */
21
     */
21
	public String getRootdn() {
22
    public String get
22
		
23
ConstructorString()
24
    {
23
return getPropertyAsString(ROOTDN);
25
        return getPropertyAsString(
24
	
26
CONSTRUCTORSTRING);
25
}
27
    }
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