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 getError(){ return getPropertyAsString(ERROR); } /** * provide a descriptive error for the test method. For * a description of the difference between failure and * error, please refer to the following url * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9 * @param error */ public void setError(String error){ setProperty(ERROR,error); } /** * return the error code for the test method. it should * be an unique error code. */ public String getErrorCode(){ return getPropertyAsString(ERRORCODE);
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 getError(){
2
		return getPropertyAsString(VALUE);
2
        return getPropertyAsString(
3
	}
4
	/**
5
	 * set the va
3
ERROR);
4
    }
5
    
6
    /**
7
     * provide a descriptive error for the test method. For
6
lue for this object.
8
     * a description of the difference between failure 
7
	
9
and
10
     * error, please refer to the following url
11
     * http://junit.sourceforge.net/doc/faq/faq.htm#tests_9
12
     * @param error
8
 */
13
     */
9
	public synchronized void setValue(String value) {
14
    public void setError(String 
10
		this.setProperty(VALUE, value);
11
	}
12
	
15
error){
16
        setProperty(ERROR,error);
17
    }
18
    
13
/**
19
    /**
14
	 * get the domain for this object.
20
     * return the 
15
	
21
error code for the test method. it should
22
     * be an unique error code.
16
 */
23
     */
17
	public synchronized String getDomain() {
24
    public String getErrorCode(){
18
		return getPropertyAsString(DOMAIN);
25
        return getPropertyAsString(
19
	
26
ERRORCODE);
27
    
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