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(); }
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) {
1
void set
2
		setProperty(SERVER_TYPE, serverType
2
Password(String password) {
3
);
3
		setProperty(PASSWORD, password);
4
	}
4
	}
5
	/**
5
	/**
6
	 * Returns the type of the protocol set to use when talking with the remote
6
	 * @return
7
	 * server. Either MailReaderSampler.TYPE_IMAP[S] or
8
	 * MailReaderSampler.TYPE_POP3[S].
9
	 * 
10
	 * @return Server Type
7
 password
11
	 */
8
	 */
12
	public String getServerType() {
9
	public String getPassword() {
13
		return getProperty(SERVER_TYPE).toString();
10
		return getProperty(PASSWORD).toString();
14
	}
11
	}
15
	/**
12
	/**
16
	 * @param server -
13
	 * @param folder -
17
	 *            The name or address of the remote server
14
	 *            Name of the folder to read emails from. "INBOX" is the only
18
.
15
	 *            acceptable value if the server type is POP3.
19
	 */
16
	 */
20
	public void setServer(String server) {
17
	public void setFolder(String folder) {
21
		setProperty(SERVER, server);
18
		setProperty(FOLDER, folder);
22
	}
19
	}
23
	/**
20
	/**
24
	 * @return The name or address of the remote server.
21
	 * @return folder
25
	 */
22
	 */
26
	public String getServer() {
23
	public String getFolder() {
27
		return getProperty(SERVER).toString();
24
		return getProperty(FOLDER).toString();
28
	}
25
	}
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