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); } /** * 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); }
String getPass() { return getPropertyAsString(PASSWORD); } public synchronized void setPass(String pass) { setProperty(PASSWORD, pass); } public synchronized String getDomain() { return getPropertyAsString(DOMAIN); } public synchronized void setDomain(String domain) { setProperty(DOMAIN, domain); } public synchronized String getRealm() { return getPropertyAsString(REALM); }
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/Authorization.java
Method name: Method name:
Number of AST nodes: 0 Number of AST nodes: 0
1
String getSuccessCode(){
1
String getPass() {
2
        return getPropertyAsString(SUCCESSCODE);
2
		return getPropertyAsString(
3
    }
4
    /**
5
     * set the succes code. the success code should
6
     * be unique.
7
     * @param code
8
     */
9
    public void setSuccessCode(String code){
10
        
3
PASSWORD);
4
	}
5
	public synchronized void setPass(String pass) {
11
setProperty(SUCCESSCODE,code);
6
		setProperty(
12
    }
13
    
14
    /**
15
     * get the failure message
16
     */
17
    public
7
PASSWORD, pass);
8
	}
18
 String getFailure(){
9
	public synchronized String getDomain() {
19
        return getPropertyAsString(FAILURE);
10
		return getPropertyAsString(
20
    }
21
    /**
22
     * set the failure message
23
     * @param fail
24
     */
25
    public
11
DOMAIN);
12
	}
26
 void setFailure(String fail){
13
	public synchronized void setDomain(String 
27
        
14
domain) {
28
setProperty(FAILURE,fail);
15
		setProperty(DOMAIN, domain);
29
    }
30
    
31
    /**
32
     * The failure code is used by other components
33
     */
34
    public String getFailureCode
16
	}
35
(){
17
	public synchronized String getRealm() {
36
        return getPropertyAsString(FAILURECODE);
18
		return getPropertyAsString(
37
    
19
REALM);
38
}
20
	}
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