void setErrorCode(String code){ setProperty(ERRORCODE,code); } /** * return the comma separated string for the filter */ public String getFilterString(){ return getPropertyAsString(FILTER); } /** * set the filter string in comman separated format * @param text */ public void setFilterString(String text){ setProperty(FILTER,text); }
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); }
Clone fragments detected by clone detection tool
File path: /jakarta-jmeter-2.3.2/src/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java File path: /jakarta-jmeter-2.3.2/src/org/apache/jmeter/protocol/http/control/Header.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
void setErrorCode(String code){
1
void setName(String name) {
2
        setProperty(ERRORCODE,code);
2
		this.setProperty(
3
    }
4
    
5
    
3
HNAME, name);
4
	}
6
/**
5
	/**
7
     * return the comma separated string for the filter
6
	 * Get the 
8
    
7
value for this object.
9
 */
8
	 */
10
    public String getFilterString(){
9
	public synchronized String getValue() {
11
        return getPropertyAsString(FILTER);
10
		return getPropertyAsString(
12
    }
13
    
14
    
11
VALUE);
12
	}
15
/**
13
	/**
16
     * set the filter string in comman separated format
14
	 * Set the 
17
     * @param text
18
    
15
value for this object.
19
 */
16
	 */
20
    public void setFilterString(String text){
17
	public 
21
        setProperty(FILTER,text);
22
    
18
synchronized void setValue(String value) {
19
		this.setProperty(VALUE, value);
23
}
20
	}
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