void setVarName(String name) { setProperty(VAR_NAME, name); } public String getVarName() { return getPropertyAsString(VAR_NAME); } public void setFormat(String format) { setProperty(FORMAT, format); }
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); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/modifiers/CounterConfig.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 setVarName(String name) {
1
void setRandomPath(String path) {
2
		setProperty(VAR_NAME, name);
2
		setProperty(
3
	}
3
RANDOM_PATH, path);
4
	}
5
	/**
6
	 * return the random path for messages
7
	 * 
8
	 */
4
	public String getVarName() {
9
	public String getRandomPath() {
5
		return getPropertyAsString(VAR_NAME);
10
		return getPropertyAsString(
6
	}
7
    
11
RANDOM_PATH);
12
	}
13
	/**
14
	 * set the text for the message
15
	 * 
16
	 * @param message
17
	 */
8
public void setFormat(String format) {
18
	public void set
9
        setProperty(FORMAT, format);
10
    
19
TextMessage(String message) {
20
		setProperty(TEXT_MSG, message);
11
}
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