void setRandomPath(String path) { setProperty(RANDOM_PATH, path); } /** * return the random path for messages * */ public String getRandomPath() { return getPropertyAsString(RANDOM_PATH); } /** * set the text for the message * * @param message */ public void setTextMessage(String message) { setProperty(TEXT_MSG, message); }
void setRequestData(String newRequestData) { this.setProperty(REQUEST, newRequestData); } public String getRequestData() { return getPropertyAsString(REQUEST); } public void setTimeout(String newTimeout) { this.setProperty(FILENAME, newTimeout); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/jms/sampler/PublisherSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/tcp/sampler/TCPSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setRandomPath(String path) {
1
void setRequestData(String newRequestData) {
2
		setProperty(RANDOM_PATH, path);
2
		this.setProperty(R
3
	}
4
	/**
5
	 * return the random path for messages
6
	 * 
7
	 */
3
EQUEST, newRequestData);
4
	}
8
	public String getRandomPath() {
5
	public String getRequestData() {
9
		return getPropertyAsString(RANDOM_PATH);
6
		return getPropertyAsString(REQUEST);
10
	}
7
	}
11
	/**
12
	 * set the text for the message
13
	 * 
14
	 * @param message
15
	 */
16
	public void setTextMessage(String message) {
8
	public void setTimeout(String newTimeout) {
17
		setProperty(TEXT_MSG, message);
9
		this.setProperty(FILENAME, newTimeout);
18
	}
10
	}
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