void setName(String name) { this.setProperty(HNAME, name); } /** * Get the value for this object. */ public synchronized String getValue() { return getPropertyAsString(VALUE); } /** * Set the value for this object. */ public synchronized void setValue(String value) { this.setProperty(VALUE, value); }
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/http/control/Header.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 setName(String name) {
1
void setTitle(String title) {
2
		this.setProperty(HNAME, name);
2
    	setProperty(REPORT_CHART_TITLE,title);
3
	}
3
    }
4
	/**
4
    /**
5
	 * Get the value for this object.
6
	
5
     * The caption is a description for the chart explaining
6
     * what the chart means.
7
     * @return caption
7
 */
8
     */
8
	public synchronized String getValue() {
9
    public 
9
		return getPropertyAsString(VALUE);
10
	}
11
	
10
String getCaption() {
11
        return getPropertyAsString(REPORT_CHART_CAPTION);
12
    }
13
    
12
/**
14
    /**
13
	 * Set the value for this object.
14
	
15
     * The caption is a description for the chart explaining
16
     * what the chart means.
17
     * @param caption
15
 */
18
     */
16
	public synchronized void setValue(String value) {
19
    public void setCaption(String 
17
		this.setProperty(VALUE, value);
18
	
20
caption) {
21
        setProperty(REPORT_CHART_CAPTION,caption);
19
}
22
    }
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