String getErrorCode(){ return getPropertyAsString(ERRORCODE); } /** * provide an unique error code for when the test * does not pass the assert test. * @param code */ public void setErrorCode(String code){ setProperty(ERRORCODE,code); } /** * return the comma separated string for the filter */ public String getFilterString(){ return getPropertyAsString(FILTER); } /** * set the filter string in comman separated format * @param text */ public void setFilterString(String text){ setProperty(FILTER,text);
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); } /** * Set the value for this object. */ public synchronized void setValue(String value) { this.setProperty(VALUE, 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 getErrorCode(){
1
String getName() {
2
        return getPropertyAsString(ERRORCODE);
2
		return getPropertyAsString(
3
    }
4
    
5
    /**
6
     * provide an unique error code for when the test
7
     * does not pass the assert test.
8
     * @param code
9
    
3
HNAME);
4
	}
5
	/**
6
	 * Set the name for this object.
10
 */
7
	 */
11
    public void setErrorCode(String code){
8
	public synchronized void setName(String name) {
12
        setProperty(ERRORCODE,code);
9
		this.setProperty(
13
    }
14
    
15
    
10
HNAME, name);
11
	}
16
/**
12
	/**
17
     * return the comma separated string for the filter
13
	 * Get the 
18
    
14
value for this object.
19
 */
15
	 */
20
    public String getFilterString(){
16
	public synchronized String getValue() {
21
        return getPropertyAsString(FILTER);
17
		return getPropertyAsString(
22
    }
23
    
24
    
18
VALUE);
19
	}
25
/**
20
	/**
26
     * set the filter string in comman separated format
21
	 * Set the 
27
     * @param text
28
    
22
value for this object.
29
 */
23
	 */
30
    public void setFilterString(String text){
24
	public 
31
        setProperty(FILTER,text);
32
    
25
synchronized void setValue(String value) {
26
		this.setProperty(VALUE, value);
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