String getValue() { return getPropertyAsString(VALUE); } /** * set the value for this object. */ public synchronized void setValue(String value) { this.setProperty(VALUE, value); } /** * get the domain for this object. */ public synchronized String getDomain() { return getPropertyAsString(DOMAIN); }
String getErrorCode(){ return getPropertyAsString(ERRORCODE); } /** * provide an unique error code for when the test * does not pass the assert test. * @param code */ public void setErrorCode(String code){ setProperty(ERRORCODE,code); } /** * return the comma separated string for the filter */ public String getFilterString(){ return getPropertyAsString(FILTER); }
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/junit/org/apache/jmeter/protocol/java/sampler/JUnitSampler.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getValue() {
1
String getErrorCode(){
2
		return getPropertyAsString(VALUE);
2
        return getPropertyAsString(
3
	}
4
	/**
5
	 * set the value for this object.
6
	
3
ERRORCODE);
4
    }
5
    
6
    /**
7
     * provide an unique error code for when the test
8
     * does not pass the assert test.
9
     * @param code
7
 */
10
     */
8
	public synchronized void setValue(String value) {
11
    public void setErrorCode(String code){
9
		this.setProperty(VALUE, value);
12
        setProperty(
10
	}
11
	
13
ERRORCODE,code);
14
    }
15
    
12
/**
16
    /**
13
	 * get the domain for this object.
17
     * return the comma separated string for th
14
	
18
e filter
15
 */
19
     */
16
	public synchronized String getDomain() {
20
    public String getFilterString(){
17
		return getPropertyAsString(DOMAIN);
21
        return getPropertyAsString(
18
	
22
FILTER);
19
}
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