void setDefaultValue(String defaultValue) { setProperty(DEFAULT, defaultValue); } public String getDefaultValue() { return getPropertyAsString(DEFAULT); } public void setTemplate(String template) { setProperty(TEMPLATE, template); } public String getTemplate() { return getPropertyAsString(TEMPLATE); }
void setInputFile(String file) { setProperty(INPUT_FILE, file); } /** * return the path of the input file * */ public String getInputFile() { return getPropertyAsString(INPUT_FILE); } /** * set the random path for the messages * * @param path */ public void setRandomPath(String path) { setProperty(RANDOM_PATH, path); } /** * return the random path for messages * */ public String getRandomPath() { return getPropertyAsString(RANDOM_PATH); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/extractor/RegexExtractor.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 setDefaultValue(String defaultValue) {
1
void set
2
		setProperty(DEFAULT, defaultValue);
3
	}
2
InputFile(String file) {
3
		setProperty(INPUT_FILE, file);
4
	}
5
	/**
6
	 * return the path of the input file
7
	 * 
8
	 */
4
	public String getDefaultValue() {
9
	public String getInputFile() {
5
		return getPropertyAsString(DEFAULT);
10
		return getPropertyAsString(INPUT_FILE);
6
	}
11
	}
12
	/**
13
	 * set the random path for the messages
14
	 * 
15
	 * @param path
16
	 */
7
	public void setTemplate(String template) {
17
	public void setRandomPath(String path) {
8
		setProperty(TEMPLATE, template);
18
		setProperty(RANDOM_PATH, 
9
	}
19
path);
20
	}
21
	/**
22
	 * return the random path for messages
23
	 * 
24
	 */
10
	public String getTemplate() {
25
	public String getRandomPath() {
11
		return getPropertyAsString(TEMPLATE);
26
		return getPropertyAsString(RANDOM_PATH);
12
	}
27
	}
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