void setValue(String value) { this.setProperty(VALUE, value); } /** * get the domain for this object. */ public synchronized String getDomain() { return getPropertyAsString(DOMAIN); } /** * set the domain for this object. */ public synchronized void setDomain(String domain) { setProperty(DOMAIN, domain); }
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/Cookie.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 setValue(String value) {
1
void setTitle(String title) {
2
		this.setProperty(VALUE, value);
2
    	setProperty(REPORT_CHART_TITLE,title);
3
	}
3
    }
4
	/**
4
    /**
5
	 * get the domain 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 getDomain() {
9
    public String getCaption() {
9
		return getPropertyAsString(DOMAIN);
10
        return getPropertyAsString(
10
	}
11
	
11
REPORT_CHART_CAPTION);
12
    }
13
    
12
/**
14
    /**
13
	 * set the domain 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 setDomain(String domain) {
19
    public void setCaption(String 
17
		setProperty(DOMAIN, domai
20
caption) {
18
n);
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