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(); } /** * @param username - * The username of the mail account. */ public void setUserName(String username) { setProperty(USERNAME, username); } /** * @return The username of the mail account. */ public String getUserName() { return getProperty(USERNAME).toString(); } /** * @param password */ public void setPassword(String password) { setProperty(PASSWORD, password); } /** * @return password */ public String getPassword() { return getProperty(PASSWORD).toString();
void setServer(String server) { setProperty(SERVER, server); } /** * @return The name or address of the remote server. */ public String getServer() { return getProperty(SERVER).toString(); } /** * @param username - * The username of the mail account. */ public void setUserName(String username) { setProperty(USERNAME, username); } /** * @return The username of the mail account. */ public String getUserName() { return getProperty(USERNAME).toString(); } /** * @param password */ public 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();
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 setServerType(String serverType) {
2
		setProperty(SERVER_TYPE, serverType);
3
	}
4
	/**
5
	 * Returns the type of the protocol set to use when talking with the remote
6
	 * server. Either MailReaderSampler.TYPE_IMAP[S] or
7
	 * MailReaderSampler.TYPE_POP3[S].
8
	 * 
9
	 * @return Server Type
10
	 */
11
	public String getServerType() {
12
		return getProperty(SERVER_TYPE).toString();
13
	}
14
	/**
15
	 * @param server -
16
	 *            The name or address of the remote server.
17
	 */
18
	public void setServer(String server) {
1
void setServer(String server) {
19
		setProperty(SERVER, server);
2
		setProperty(SERVER, server);
20
	}
3
	}
21
	/**
4
	/**
22
	 * @return The name or address of the remote server.
5
	 * @return The name or address of the remote server.
23
	 */
6
	 */
24
	public String getServer() {
7
	public String getServer() {
25
		return getProperty(SERVER).toString();
8
		return getProperty(SERVER).toString();
26
	}
9
	}
27
	/**
10
	/**
28
	 * @param username -
11
	 * @param username -
29
	 *            The username of the mail account.
12
	 *            The username of the mail account.
30
	 */
13
	 */
31
	public void setUserName(String username) {
14
	public void setUserName(String username) {
32
		setProperty(USERNAME, username);
15
		setProperty(USERNAME, username);
33
	}
16
	}
34
	/**
17
	/**
35
	 * @return The username of the mail account.
18
	 * @return The username of the mail account.
36
	 */
19
	 */
37
	public String getUserName() {
20
	public String getUserName() {
38
		return getProperty(USERNAME).toString();
21
		return getProperty(USERNAME).toString();
39
	}
22
	}
40
	/**
23
	/**
41
	 * @param password
24
	 * @param password
42
	 */
25
	 */
43
	public void setPassword(String password) {
26
	public void setPassword(String password) {
44
		setProperty(PASSWORD, password);
27
		setProperty(PASSWORD, password);
45
	}
28
	}
46
	/**
29
	/**
47
	 * @return password
30
	 * @return password
48
	 */
31
	 */
49
	public String getPassword() {
32
	public String getPassword() {
50
		return getProperty(PASSWORD).toString();
33
		return getProperty(PASSWORD).toString();
51
	
34
	}
35
	/**
36
	 * @param folder -
37
	 *            Name of the folder to read emails from. "INBOX" is the only
38
	 *            acceptable value if the server type is POP3.
39
	 */
40
	public void setFolder(String folder) {
41
		setProperty(FOLDER, folder);
42
	}
43
	/**
44
	 * @return folder
45
	 */
46
	public String getFolder() {
47
		return getProperty(FOLDER).toString();
48
	
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