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);
String getName() { return getPropertyAsString(HNAME); } /** * Set the name for this object. */ public synchronized void setName(String name) { this.setProperty(HNAME, name); } /** * Get the value for this object. */ public synchronized String getValue() { return getPropertyAsString(VALUE);
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/Header.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getSuccess(){
1
String getName() {
2
        return getPropertyAsString(SUCCESS);
2
		return getPropertyAsString(
3
    }
4
    
5
    
3
HNAME);
4
	}
6
/**
5
	/**
7
     * set the success message
6
	 * Set the 
8
     * @param success
9
    
7
name for this object.
10
 */
8
	 */
11
    public void setSuccess(String success){
9
	public synchronized void setName(String 
12
        setProperty(SUCCESS,success);
13
    }
14
    
15
    
10
name) {
11
		this.setProperty(HNAME, name);
12
	}
16
/**
13
	/**
17
     * get the success code defined by the user
14
	 * Get the 
18
    
15
value for this object.
19
 */
16
	 */
20
    public String getSuccessCode(){
17
	public synchronized String getValue() {
21
        return getPropertyAsString(SUCCESSCODE);
18
		return getPropertyAsString(VALUE);
22
    
19
	
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