String getFailure(){ return getPropertyAsString(FAILURE); } /** * set the failure message * @param fail */ public void setFailure(String fail){ setProperty(FAILURE,fail); } /** * The failure code is used by other components */ public String getFailureCode(){ return getPropertyAsString(FAILURECODE); } /** * Provide some unique code to denote a type of failure * @param code */ public void setFailureCode(String code){ setProperty(FAILURECODE,code); }
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); }
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/Cookie.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getFailure(){
1
String getValue() {
2
        return getPropertyAsString(FAILURE);
2
		return getPropertyAsString(VALUE);
3
    }
3
	}
4
    /**
4
	/**
5
     * set the failure message
5
	 * set the 
6
     * @param fail
7
    
6
value for this object.
8
 */
7
	 */
9
    public void setFailure(String fail){
8
	public synchronized void setValue(String 
10
        
9
value) {
11
setProperty(FAILURE,fail);
10
		this.setProperty(VALUE,
12
    }
13
    
14
    /**
15
     * The failure code is used by other components
16
    
11
 value);
12
	}
13
	/**
14
	 * get the domain for this object.
17
 */
15
	 */
18
    public String getFailureCode(){
16
	public synchronized String getDomain() {
19
        return getPropertyAsString(FAILURECODE);
17
		return getPropertyAsString(
20
    }
21
    
22
    /**
23
     * Provide some unique code to denote a type of failure
24
     * @param code
25
    
18
DOMAIN);
19
	}
20
	/**
21
	 * set the domain for this object.
26
 */
22
	 */
27
    public void setFailureCode(String code){
23
	public 
28
        setProperty(FAILURECODE,code);
29
    
24
synchronized void setDomain(String domain) {
25
		setProperty(DOMAIN, domain);
30
}
26
	}
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