void setTest(String newTest) { this.setProperty(TEST, newTest); } /*************************************************************************** * Gets the test attribute of the LDAPSampler object * * @return The test value (Add,Modify,Delete and search) **************************************************************************/ public 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);
void setMessageChoice(String choice) { setProperty(MESSAGE_CHOICE, choice); } /** * return the source of the message * */ public String getMessageChoice() { return getPropertyAsString(MESSAGE_CHOICE); } /** * set the input file for the publisher * * @param file */ public void setInputFile(String file) { setProperty(INPUT_FILE, file);
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/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setTest(String newTest) {
1
void setMessageChoice(String choice) {
2
		this.setProperty(TEST, newTest);
2
		setProperty(MES
3
	}
4
	/*************************************************************************
3
SAGE_CHOICE, choice);
4
	}
5
**
5
	/**
6
	 * Gets the test attribute of the LDAPSampler object
6
	 * return the 
7
	 * 
8
	 * @return The test value (Add,Modify,Delete and search)
9
	 *************************************************************************
7
source of the message
8
	 * 
10
*/
9
	 */
11
	public String getTest() {
10
	public String getMessageChoice() {
12
		return getPropertyAsString(TEST);
11
		return getPropertyAsString(MESSAGE_CHOICE);
13
	}
12
	}
14
	/***************************************************************************
13
	/**
15
	 * Sets the attributes of the LdapConfig object
14
	 * set the 
16
	 * 
17
	 * @param newAttrs
18
	 *            The new attributes value
19
	 *************************************************************************
15
input file for the publisher
16
	 * 
17
	 * @param file
20
*/
18
	 */
21
	public void setAttrs(String newAttrs) {
19
	public void setInputFile(String file) {
22
		this.setProperty(ATTRIBS, newAttrs);
20
		setProperty(INPUT_FILE, file);
23
	
21
	
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