String getTest() { return getPropertyAsString(TEST); } /*************************************************************************** * Sets the attributes of the LdapConfig object * * @param newAttrs * The new attributes value **************************************************************************/ public void setAttrs(String newAttrs) { this.setProperty(ATTRIBS, newAttrs); } /*************************************************************************** * Gets the attributes of the LDAPSampler object * * @return The attributes **************************************************************************/ public String getAttrs() { return getPropertyAsString(ATTRIBS); }
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/LDAPExtSampler.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 getTest() {
1
String get
2
		return getPropertyAsString(TEST);
3
	}
4
	/***************************************************************************
5
	
2
Classname()
3
    {
4
        return getPropertyAsString(CLASSNAME);
5
    }
6
    
7
    /**
6
 * Sets the attributes of the LdapConfig object
8
     * Set the stri
7
	 * 
8
	 * @param newAttrs
9
	 *            The new attributes value
10
	 **************************************************************************/
11
	public void setAttrs
9
ng label used to create an instance of the
10
     * test with the string constructor.
11
     * @param constr
12
     */
12
(String newAttrs) {
13
    public void setConstructorString(String 
13
		this.setProperty(ATTRIBS, newAt
14
constr)
15
    {
14
trs);
16
        setProperty(CONSTRUCTORSTRING,constr);
15
	}
16
	/***************************************************************************
17
	
17
    }
18
    
19
    /**
18
 * Gets the attributes of the LDAPSampler object
20
     * get the stri
19
	 * 
20
	 * @return The attributes
21
	 **************************************************************************/
22
	public String getAttrs() {
23
		
21
ng passed to the string constructor
22
     */
23
    public String getConstructorString()
24
    {
24
return getPropertyAsString(ATTRIBS);
25
        return getPropertyAsString(CONSTRUCTORSTRING);
25
	}
26
    }
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