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 getSuccessCode(){ return getPropertyAsString(SUCCESSCODE); } /** * set the succes code. the success code should * be unique. * @param code */ public void setSuccessCode(String code){ setProperty(SUCCESSCODE,code); } /** * get the failure message */ public String getFailure(){ return getPropertyAsString(FAILURE); }
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 getSuccessCode(){
2
		return getPropertyAsString(VALUE);
2
        return getPropertyAsString(SUCCESSCODE);
3
	}
3
    }
4
	/**
4
    /**
5
	 * set the value for this object.
5
     * set the 
6
	
6
succes code. the success code should
7
     * be unique.
8
     * @param code
7
 */
9
     */
8
	public synchronized void setValue(String value) {
10
    public void setSuccessCode(String code){
9
		this.setProperty(VALUE, value);
11
        setProperty(
10
	}
11
	
12
SUCCESSCODE,code);
13
    }
14
    
12
/**
15
    /**
13
	 * get the domain for this object.
16
     * get the 
14
	
17
failure message
15
 */
18
     */
16
	public synchronized String getDomain() {
19
    public String getFailure(){
17
		return getPropertyAsString(DOMAIN);
20
        return getPropertyAsString(
18
	
21
FAILURE);
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