void setParameters(String newScript) { this.setProperty(PARAMETERS, newScript); } public String getScriptLanguage() { return this.getPropertyAsString(LANGUAGE); } public void setScriptLanguage(String lang) { this.setProperty(LANGUAGE, lang); }
void setTitle(String title) { setProperty(REPORT_CHART_TITLE,title); } /** * The caption is a description for the chart explaining * what the chart means. * @return caption */ public String getCaption() { return getPropertyAsString(REPORT_CHART_CAPTION); } /** * The caption is a description for the chart explaining * what the chart means. * @param caption */ public void setCaption(String caption) { setProperty(REPORT_CHART_CAPTION,caption); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/java/sampler/BSFSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/testelement/AbstractChart.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setParameters(String newScript) {
1
void set
2
		this.setProperty(PARAMETERS, newScript);
3
	}
4
	public String getScriptLanguage() {
5
		
2
Title(String title) {
3
    	setProperty(REPORT_CHART_TITLE,title);
4
    }
5
    /**
6
     * The caption is a description for the chart explaining
7
     * what the chart means.
8
     * @return caption
9
     */
10
    public String getCaption() {
6
return this.getPropertyAsString(LANGUAGE);
11
        return getPropertyAsString(
7
	}
8
	
12
REPORT_CHART_CAPTION);
13
    }
14
    
15
    /**
16
     * The caption is a description for the chart explaining
17
     * what the chart means.
18
     * @param caption
19
     */
9
public void setScriptLanguage(String lang) {
20
    public void set
10
		this.setProperty(LANGUAGE, lang);
11
	
21
Caption(String caption) {
22
        setProperty(REPORT_CHART_CAPTION,caption);
12
}
23
    }
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