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); } /** * set the domain for this object. */ public synchronized void setDomain(String domain) { setProperty(DOMAIN, domain);
String getSuccess(){ return getPropertyAsString(SUCCESS); } /** * set the success message * @param success */ public void setSuccess(String success){ setProperty(SUCCESS,success); } /** * get the success code defined by the user */ public 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);
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 getSuccess(){
2
		return getPropertyAsString(VALUE);
2
        return getPropertyAsString(
3
	}
4
	
3
SUCCESS);
4
    }
5
    
5
/**
6
    /**
6
	 * set the value for this object.
7
     * set the 
7
	
8
success message
9
     * @param success
8
 */
10
     */
9
	public synchronized void setValue(String value) {
11
    public void setSuccess(String 
10
		this.setProperty(VALUE, value);
11
	}
12
	
12
success){
13
        setProperty(SUCCESS,success);
14
    }
15
    
13
/**
16
    /**
14
	 * get the domain for this object.
17
     * get the 
15
	
18
success code defined by the user
16
 */
19
     */
17
	public synchronized String getDomain() {
20
    public String getSuccessCode(){
18
		return getPropertyAsString(DOMAIN);
21
        return getPropertyAsString(
19
	
22
SUCCESSCODE);
20
}
23
    }
21
	/**
24
    /**
22
	 * set the domain for this object.
25
     * set the 
23
	
26
succes code. the success code should
27
     * be unique.
28
     * @param code
24
 */
29
     */
25
	public synchronized void setDomain(String domain) {
30
    public 
26
		setProperty(DOMAIN, domain);
27
	
31
void setSuccessCode(String code){
32
        setProperty(SUCCESSCODE,code);
33
    
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