void setPassword(String password) { setProperty(PASSWORD, password); } /** * @return password */ public String getPassword() { return getProperty(PASSWORD).toString(); } /** * @param folder - * Name of the folder to read emails from. "INBOX" is the only * acceptable value if the server type is POP3. */ public void setFolder(String folder) { setProperty(FOLDER, folder); } /** * @return folder */ public String getFolder() { return getProperty(FOLDER).toString();
void setServerType(String serverType) { setProperty(SERVER_TYPE, serverType); } /** * Returns the type of the protocol set to use when talking with the remote * server. Either MailReaderSampler.TYPE_IMAP[S] or * MailReaderSampler.TYPE_POP3[S]. * * @return Server Type */ public String getServerType() { return getProperty(SERVER_TYPE).toString(); } /** * @param server - * The name or address of the remote server. */ public void setServer(String server) { setProperty(SERVER, server); } /** * @return The name or address of the remote server. */ public String getServer() { return getProperty(SERVER).toString();
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/mail/sampler/MailReaderSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setPassword(String password) {
1
void set
2
		setProperty(PASSWORD, password
2
ServerType(String serverType) {
3
);
3
		setProperty(SERVER_TYPE, serverType);
4
	}
4
	}
5
	/**
5
	/**
6
	 * @return password
6
	 * Returns the type of the protocol set to use when talking with the remote
7
	 * server. Either MailReaderSampler.TYPE_IMAP[S] or
8
	 * MailReaderSampler.TYPE_POP3[S].
9
	 * 
10
	 * @return Server Type
7
	 */
11
	 */
8
	public String getPassword() {
12
	public String getServerType() {
9
		return getProperty(PASSWORD).toString();
13
		return getProperty(SERVER_TYPE).toString();
10
	}
14
	}
11
	/**
15
	/**
12
	 * @param folder -
16
	 * @param server -
13
	 *            Name of the folder to read emails from. "INBOX" is the only
17
	 *            
14
	 *            acceptable value if the server type is POP3.
18
The name or address of the remote server.
15
	 */
19
	 */
16
	public void setFolder(String folder) {
20
	public void setServer(String server) {
17
		setProperty(FOLDER, folder);
21
		setProperty(SERVER, server);
18
	}
22
	}
19
	/**
23
	/**
20
	 * @return folder
24
	 * @return The name or address of the remote server.
21
	 */
25
	 */
22
	public String getFolder() {
26
	public String getServer() {
23
		return getProperty(FOLDER).toString();
27
		return getProperty(SERVER).toString();
24
	
28
	
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